]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test1664: extend with more tests for curlx_str_quotedword
authorDaniel Stenberg <daniel@haxx.se>
Wed, 31 Dec 2025 10:06:36 +0000 (11:06 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 31 Dec 2025 16:06:09 +0000 (17:06 +0100)
Closes #20123

tests/data/test1664
tests/unit/unit1664.c

index 42c4982d57ed609b007118f134b4f8cef08fed79..ccb0579be7754b91b62fdbb2327b96cf88e62762 100644 (file)
@@ -50,9 +50,14 @@ curlx_str_quotedword
 6: (""perfect"") 0, "perfect" [7], line 9
 7: (""p r e t"") 0, "p r e t" [7], line 9
 8: (""perfec\"") 1, "" [0], line 0
-9: ("""") 0, "" [0], line 2
-10: ("") 3, "" [0], line 0
-11: (""longerth"") 1, "" [0], line 0
+9: (""trail\""") 0, "trail\"" [7], line 9
+10: (""trail2\""") 1, "" [0], line 0
+11: (""trail33\""") 1, "" [0], line 0
+12: (""0\\\\\\"") 0, "0\\\\\\" [7], line 9
+13: (""1\\\\\\\"") 1, "" [0], line 0
+14: ("""") 0, "" [0], line 2
+15: ("") 3, "" [0], line 0
+16: (""longerth"") 1, "" [0], line 0
 curlx_str_single
 0: ("a") 0, line 1
 1: ("aa") 0, line 1
index e4cec3c0813c499b3aea52e6dcb53ffeb0882d05..b434462febda6d90a728de1dceef7d3ca2db753c 100644 (file)
@@ -88,6 +88,11 @@ static CURLcode test_unit1664(const char *arg)
       "\"perfect\"",
       "\"p r e t\"",
       "\"perfec\\\"",
+      "\"trail\\\"\"",
+      "\"trail2\\\"\"",
+      "\"trail33\\\"\"",
+      "\"0\\\\\\\\\\\\\"",
+      "\"1\\\\\\\\\\\\\\\"",
       "\"\"",
       "",
       "\"longerth\"",