summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Gass2017-11-28 18:13:52 +0100
committerNathan Gass2017-11-28 18:13:52 +0100
commit2ed7dd2d0b7756a5a3fa7b2cdf150537d3efc006 (patch)
tree106d09a6bada50590024f832c0ac805facc34f3a
parent502cc703e64b1b4ab42e758488c565c32bf7cfd3 (diff)
downloaditools-2ed7dd2d0b7756a5a3fa7b2cdf150537d3efc006.tar.gz
itools-2ed7dd2d0b7756a5a3fa7b2cdf150537d3efc006.tar.bz2
itools-2ed7dd2d0b7756a5a3fa7b2cdf150537d3efc006.zip
tests for falsey parameter arguments
-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 c599b5a..d340492 100644
--- a/tests/U_tests.json
+++ b/tests/U_tests.json
@@ -54,9 +54,21 @@
},
{
- "args": ["/foo.html?bar=gna&foo=g", {"bar": null}],
+ "args": ["/foo.html?bar=gna&foo=g", {"bar": ""}],
+ "exp": "/foo.html?foo=g",
+ "name": "U() remove parameter in base by overwriting with empty string"
+ },
+
+ {
+ "args": ["/foo.html?bar=gna&foo=g", {"bar": false}],
"exp": "/foo.html?foo=g",
- "name": "TODO: U() remove parameter in base by overwriting with null"
+ "name": "U() remove parameter in base by overwriting with false"
+ },
+
+ {
+ "args": ["/foo.html?bar=gna&foo=g", {"bar": null}],
+ "exp": "/foo.html?bar=gna&foo=g",
+ "name": "U() keep parameter in base instead of overwriting with null"
},
{