aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test1537
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-06-02 13:16:13 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-06-02 13:16:18 +0200
commit9b2dfe88bba160922e049ae9a19db585b65cbd56 (patch)
treed01d639b32aade659a81f51a52ad2e1ec72e3f5c /tests/data/test1537
parentb5e143e7a562a6765077110fe60bccdb8b6bb7d2 (diff)
test1537: dedicated tests of the URL (un)escape API calls
Closes #1530
Diffstat (limited to 'tests/data/test1537')
-rw-r--r--tests/data/test153745
1 files changed, 45 insertions, 0 deletions
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 @@
+<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>