From c48bb86b0c70a52925029e6c1279c521d2b1f0ad Mon Sep 17 00:00:00 2001 From: Nathan Gass Date: Thu, 7 Dec 2017 17:31:49 +0100 Subject: more tests is always better --- tests/U_tests.json | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'tests') 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" }, { -- cgit v1.2.3