diff options
author | Nathan Gass | 2017-12-07 17:31:49 +0100 |
---|---|---|
committer | Nathan Gass | 2017-12-07 17:31:49 +0100 |
commit | c48bb86b0c70a52925029e6c1279c521d2b1f0ad (patch) | |
tree | 9d7144037e333f061fbd9a92bfb7d832210a3591 | |
parent | 2ed5008463d434e943247a357a2f66ac8fa8a17a (diff) | |
download | itools-c48bb86b0c70a52925029e6c1279c521d2b1f0ad.tar.gz itools-c48bb86b0c70a52925029e6c1279c521d2b1f0ad.tar.bz2 itools-c48bb86b0c70a52925029e6c1279c521d2b1f0ad.zip |
more tests is always better
-rw-r--r-- | tests/U_tests.json | 16 |
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" }, { |