diff options
Diffstat (limited to 'test/myurl/data/query.test')
-rw-r--r-- | test/myurl/data/query.test | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/myurl/data/query.test b/test/myurl/data/query.test new file mode 100644 index 0000000..2b8959d --- /dev/null +++ b/test/myurl/data/query.test @@ -0,0 +1,26 @@ +type 1 + +%URL:http://example.com?abc +%EXPECT:http://example.com/?abc + +%URL:http://example.com/?abc +%EXPECT:http://example.com/?abc + +%URL:http://example.com/?key=value +%EXPECT:http://example.com/?key=value + +%URL:http://example.com/?key=value&hohoho=hahaha +%EXPECT:http://example.com/?key=value&hohoho=hahaha + +%URL:http://example.com/?key=val ue +%EXPECT:http://example.com/?key=val%20ue + +%URL:http://example.com/?key=val万ue +%EXPECT:http://example.com/?key=val%E4%B8%87ue + +%URL:http://example.com/?key=v +al万u e +%EXPECT:http://example.com/?key=val%E4%B8%87ue + +%URL:http://example.com/?abc#hash +%EXPECT:http://example.com/?abc#hash |