diff options
-rw-r--r-- | tests/U_tests.json | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/U_tests.json b/tests/U_tests.json index 3e1d092..d9c26f1 100644 --- a/tests/U_tests.json +++ b/tests/U_tests.json @@ -36,6 +36,24 @@ }, { + "args": ["/foo.html", {"bar": null}], + "exp": "/foo.html", + "name": "U() empty parameter removed" + }, + + { + "args": ["/foo.html?bar="], + "exp": "/foo.html", + "name": "U() empty parameter in base removed (1)" + }, + + { + "args": ["/foo.html?bar"], + "exp": "/foo.html", + "name": "U() empty parameter in base removed (2)" + }, + + { "args": ["/foo.html", {"bar": {"gna": 42, "qux": {"quux": "<Zürich>", "gnöp": "fasel"}}}], "exp": "/foo.html?bar[gna]=42&bar[qux][quux]=%3CZ%C3%BCrich%3E&bar[qux][gn%C3%B6p]=fasel", "name": "U() with nested arrays" |