summary refs log tree commit diff stats
path: root/tests/stdlib
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stdlib')
-rw-r--r--tests/stdlib/tcgi.nim14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/stdlib/tcgi.nim b/tests/stdlib/tcgi.nim
index 7df1b077d..222a3bf6d 100644
--- a/tests/stdlib/tcgi.nim
+++ b/tests/stdlib/tcgi.nim
@@ -1,6 +1,14 @@
 discard """

   output: '''

 [Suite] Test cgi module

+(key: "a", value: "1")

+(key: "b", value: "0")

+(key: "c", value: "3")

+(key: "d", value: "")

+(key: "e", value: "")

+(key: "a", value: "5")

+(key: "a", value: "t e x t")

+(key: "e", value: "http://w3schools.com/my test.asp?name=ståle&car=saab")

 '''

 """

 

@@ -21,3 +29,9 @@ suite "Test cgi module":
 

     expect KeyError:

       discard parsedQuery["not_existing_key"]

+

+# bug #15369

+let queryString = "a=1&b=0&c=3&d&e&a=5&a=t%20e%20x%20t&e=http%3A%2F%2Fw3schools.com%2Fmy%20test.asp%3Fname%3Dst%C3%A5le%26car%3Dsaab"

+

+for pair in decodeData(queryString):

+  echo pair

7cedfc9854fabab5eb'>97e26967f ^
0440aea69 ^







3fa428c88 ^










f7b10e213 ^
3fa428c88 ^





3fa428c88 ^



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72