summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/U_tests.json16
1 files changed, 14 insertions, 2 deletions
diff --git a/tests/U_tests.json b/tests/U_tests.json
index a8ad63d..2d868e3 100644
--- a/tests/U_tests.json
+++ b/tests/U_tests.json
@@ -44,13 +44,25 @@
{
"args": ["/foo.html?bar="],
"exp": "/foo.html?bar=",
- "name": "U() empty parameter with = in base must stay"
+ "name": "U() keep empty parameter with = if only base is given"
},
{
"args": ["/foo.html?foo=bar&qux"],
"exp": "/foo.html?foo=bar&qux",
- "name": "U() empty parameter in base without = must stay"
+ "name": "U() keep empty parameter without = if only base is given"
+ },
+
+ {
+ "args": ["/foo.html?bar=", {"foo": "gna"}],
+ "exp": "/foo.html?foo=gna",
+ "name": "U() empty parameter with = removed if parameters get changed"
+ },
+
+ {
+ "args": ["/foo.html?foo=bar&qux", {"gna": "gnaber"}],
+ "exp": "/foo.html?foo=bar&gna=gnaber",
+ "name": "U() empty parameter without = removed if parameters get changed"
},
{