summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Gass2017-11-28 18:08:41 +0100
committerNathan Gass2017-11-28 18:08:41 +0100
commit502cc703e64b1b4ab42e758488c565c32bf7cfd3 (patch)
treec8ec88a35dbabb73c1ddcd1d8a6f41e4d37ad012
parent208273360cc39c13870a73c82205a01d1c3b8a1a (diff)
downloaditools-502cc703e64b1b4ab42e758488c565c32bf7cfd3.tar.gz
itools-502cc703e64b1b4ab42e758488c565c32bf7cfd3.tar.bz2
itools-502cc703e64b1b4ab42e758488c565c32bf7cfd3.zip
add todo test for removing parameters from base
-rw-r--r--tests/U_tests.json6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/U_tests.json b/tests/U_tests.json
index d9c26f1..c599b5a 100644
--- a/tests/U_tests.json
+++ b/tests/U_tests.json
@@ -54,6 +54,12 @@
},
{
+ "args": ["/foo.html?bar=gna&foo=g", {"bar": null}],
+ "exp": "/foo.html?foo=g",
+ "name": "TODO: U() remove parameter in base by overwriting with null"
+ },
+
+ {
"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"