test1664: extend with more tests for curlx_str_quotedword

Closes #20123
This commit is contained in:
Daniel Stenberg 2025-12-31 11:06:36 +01:00
parent 258521e170
commit bfa5857c44
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
2 changed files with 13 additions and 3 deletions

View 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

View File

@ -88,6 +88,11 @@ static CURLcode test_unit1664(const char *arg)
"\"perfect\"",
"\"p r e t\"",
"\"perfec\\\"",
"\"trail\\\"\"",
"\"trail2\\\"\"",
"\"trail33\\\"\"",
"\"0\\\\\\\\\\\\\"",
"\"1\\\\\\\\\\\\\\\"",
"\"\"",
"",
"\"longerth\"",