xref: /curl/tests/data/test1664 (revision d5c738c6)
1<testcase>
2<info>
3<keywords>
4unittest
5strparse
6</keywords>
7</info>
8
9#
10# Client-side
11<client>
12<server>
13none
14</server>
15<features>
16unittest
17large-size
18</features>
19<name>
20unit tests for strparse.c string parsing functions
21</name>
22</client>
23
24<verify>
25<stdout>
26Curl_str_word
270: ("word") 0, "word" [4], line 4
281: ("word ") 0, "word" [4], line 4
292: (" word ") 2, "" [0], line 0
303: ("wo rd") 0, "wo" [2], line 2
314: ("word(") 0, "word(" [5], line 5
325: ("wor(d") 0, "wor(d" [5], line 5
336: ("perfect") 0, "perfect" [7], line 7
347: ("") 2, "" [0], line 0
358: ("longerth") 1, "" [0], line 0
36Curl_str_until
370: ("word") 0, "wor" [3], line 3
381: ("word ") 0, "wor" [3], line 3
392: (" word ") 0, " wor" [4], line 4
403: ("wo rd") 0, "wo r" [4], line 4
414: ("word(") 0, "wor" [3], line 3
425: ("wor(d") 0, "wor(" [4], line 4
436: ("perfect") 0, "perfect" [7], line 7
447: ("") 2, "" [0], line 0
458: ("longerth") 1, "" [0], line 0
46Curl_str_quotedword
470: (""word"") 0, "word" [4], line 6
481: (""word") 4, "" [0], line 0
492: ("word"") 3, "" [0], line 0
503: (""word""") 0, "word" [4], line 6
514: (""word" ") 0, "word" [4], line 6
525: (" "word"") 3, "" [0], line 0
536: (""perfect"") 0, "perfect" [7], line 9
547: (""p r e t"") 0, "p r e t" [7], line 9
558: (""perfec\"") 0, "perfec\" [7], line 9
569: ("""") 0, "" [0], line 2
5710: ("") 3, "" [0], line 0
5811: (""longerth"") 1, "" [0], line 0
59Curl_str_single
600: ("a") 0, line 1
611: ("aa") 0, line 1
622: ("A") 5, line 0
633: ("b") 5, line 0
644: ("\") 5, line 0
655: (" ") 5, line 0
666: ("") 5, line 0
67Curl_str_singlespace
680: ("a") 5, line 0
691: ("aa") 5, line 0
702: ("A") 5, line 0
713: ("b") 5, line 0
724: ("\") 5, line 0
735: (" ") 0, line 1
746: ("	") 5, line 0
757: ("
76") 5, line 0
778: ("") 5, line 0
78Curl_str_single
790: ("a") 0, line 1
801: ("aa") 0, line 1
812: ("A") 5, line 0
823: ("b") 5, line 0
834: ("\") 5, line 0
845: (" ") 5, line 0
856: ("") 5, line 0
86Curl_str_number
870: ("1") 0, [1] line 1
881: ("10000") 1, [0] line 4
892: ("1234") 0, [1234] line 4
903: ("1235") 0, [1235] line 4
914: ("1236") 1, [0] line 3
925: ("01234") 0, [1234] line 5
936: ("00000000000000000000000000001234") 0, [1234] line 32
947: ("0123 345") 0, [123] line 4
958: ("0123O345") 0, [123] line 4
969: ("-12") 0, [0] line 0
9710: (" 123") 0, [0] line 0
9811: ("") 0, [0] line 0
99Curl_str_number / max
1000: ("9223372036854775808") 0, [9223372036854775808] line 19
1011: ("9223372036854775809") 0, [9223372036854775809] line 19
1022: ("18446744073709551615") 0, [18446744073709551615] line 20
1033: ("18446744073709551616") 7, [0] line 19
1044: ("18446744073709551617") 7, [0] line 19
105Curl_str_newline
1060: ("a") 6, line 0
1071: ("aa") 6, line 0
1082: ("A") 6, line 0
1093: ("b") 6, line 0
1104: ("\") 6, line 0
1115: (" ") 6, line 0
1126: ("
113") 0, line 1
1147: ("
114") 0, line 1
1158: ("
116") 0, line 1
1179: ("") 6, line 0
118</stdout>
119</verify>
120</testcase>
121