@@ -36,7 +36,7 @@ testcases = [
3636 (str= " {\\\\ " , kwargs= (), x= 0 , code= (QUOTED | INVALID_QUOTED_FIELD | ESCAPED_STRING | EOF), vpos= 3 , vlen= 0 , tlen= 4 ),
3737 (str= " {\\ }} " , kwargs= (), x= 0 , code= (QUOTED | INVALID | ESCAPED_STRING | EOF), vpos= 3 , vlen= 2 , tlen= 6 ),
3838 (str= " {\\\\ }" , kwargs= (), x= 0 , code= (INVALID | QUOTED | ESCAPED_STRING | EOF), vpos= 3 , vlen= 2 , tlen= 5 ),
39-
39+
4040 (str= " {}" , kwargs= (), x= 0 , code= (INVALID | QUOTED | EOF), vpos= 3 , vlen= 0 , tlen= 3 ),
4141 (str= " { }" , kwargs= (), x= 0 , code= (INVALID | QUOTED | EOF), vpos= 3 , vlen= 1 , tlen= 4 ),
4242 (str= " {,} " , kwargs= (), x= 0 , code= (INVALID | QUOTED | EOF), vpos= 3 , vlen= 1 , tlen= 5 ),
@@ -253,6 +253,8 @@ res = Parsers.xparse(String, "{{hey there}}"; openquotechar="{{", closequotechar
253253@test res. val. pos == 3 && res. val. len == 9
254254res = Parsers. xparse (String, " {hey there}" ; openquotechar= ' {' , closequotechar= ' }' , stripwhitespace= true )
255255@test res. val. pos == 2 && res. val. len == 9
256+ res = Parsers. xparse (String, " {{hey there }}" ; openquotechar= " {{" , closequotechar= " }}" , stripwhitespace= true )
257+ @test res. val. pos == 3 && res. val. len == 10
256258res = Parsers. xparse (String, " {hey there }" ; openquotechar= ' {' , closequotechar= ' }' , stripwhitespace= true )
257259@test res. val. pos == 2 && res. val. len == 10
258260res = Parsers. xparse (String, " {hey there }," ; openquotechar= ' {' , closequotechar= ' }' , delim= ' ,' , stripwhitespace= true )
@@ -270,10 +272,12 @@ res = Parsers.xparse(String, " hey there "; stripwhitespace=true)
270272res = Parsers. xparse (String, " hey there " ; delim= nothing , stripwhitespace= true )
271273@test res. val. pos == 2 && res. val. len == 9
272274
273- res = Parsers. xparse (String, " {{hey there }}" ; openquotechar= " {{" , closequotechar= " }}" , stripquoted= true )
275+ res = Parsers. xparse (String, " {{hey there}}" ; openquotechar= " {{" , closequotechar= " }}" , stripquoted= true )
274276@test res. val. pos == 3 && res. val. len == 9
275277res = Parsers. xparse (String, " {hey there}" ; openquotechar= ' {' , closequotechar= ' }' , stripquoted= true )
276278@test res. val. pos == 2 && res. val. len == 9
279+ res = Parsers. xparse (String, " {{hey there }}" ; openquotechar= " {{" , closequotechar= " }}" , stripquoted= true )
280+ @test res. val. pos == 3 && res. val. len == 9
277281res = Parsers. xparse (String, " {hey there }" ; openquotechar= ' {' , closequotechar= ' }' , stripquoted= true )
278282@test res. val. pos == 2 && res. val. len == 9
279283res = Parsers. xparse (String, " {hey there }," ; openquotechar= ' {' , closequotechar= ' }' , delim= ' ,' , stripquoted= true )
0 commit comments