From 9b2dfe88bba160922e049ae9a19db585b65cbd56 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 2 Jun 2017 13:16:13 +0200 Subject: test1537: dedicated tests of the URL (un)escape API calls Closes #1530 --- tests/data/Makefile.inc | 2 +- tests/data/test1537 | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 tests/data/test1537 (limited to 'tests/data') diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc index 17d2b7945..91b7f072b 100644 --- a/tests/data/Makefile.inc +++ b/tests/data/Makefile.inc @@ -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 \ diff --git a/tests/data/test1537 b/tests/data/test1537 new file mode 100644 index 000000000..33d8ab3d9 --- /dev/null +++ b/tests/data/test1537 @@ -0,0 +1,45 @@ + + + +URL escape + + + +# +# Server-side + + + +# Client-side + + +none + + +lib1537 + + + +libcurl URL escape/unescape tests + + +nothing + + + +# +# Verify data after the test has been "shot" + + +%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 + + + + -- cgit v1.2.3