test1537: dedicated tests of the URL (un)escape API calls

Closes #1530
This commit is contained in:
Daniel Stenberg 2017-06-02 13:16:13 +02:00
parent b5e143e7a5
commit 9b2dfe88bb
4 changed files with 134 additions and 2 deletions

View file

@ -163,7 +163,7 @@ test1516 test1517 \
test1520 \
\
test1525 test1526 test1527 test1528 test1529 test1530 test1531 test1532 \
test1533 test1534 test1535 test1536 \
test1533 test1534 test1535 test1536 test1537 \
test1540 test1541 \
\
test1600 test1601 test1602 test1603 test1604 test1605 test1606 \

45
tests/data/test1537 Normal file
View file

@ -0,0 +1,45 @@
<testcase>
<info>
<keywords>
URL escape
</keywords>
</info>
#
# Server-side
<reply>
</reply>
# Client-side
<client>
<server>
none
</server>
<tool>
lib1537
</tool>
<name>
libcurl URL escape/unescape tests
</name>
<command>
nothing
</command>
</client>
#
# Verify data after the test has been "shot"
<verify>
<stdout>
%2F%3A%3B%3C%3D%3E%3F%91%A2%B3%C4%D5%E6%F7
%2F%3A%3B%3C%3D%3E%3F%91%A2%B3%C4%D5%E6%F7
outlen == 14
unescape == original? YES
[old] outlen == 14
[old] unescape == original? YES
escape -1 length: (nil)
unescape -1 length: (nil) 2017
</stdout>
</verify>
</testcase>