diff options
author | Peter Saxton <peterhsaxton@gmail.com> | 2020-07-06 13:40:54 +0100 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2020-07-06 23:56:40 +0100 |
commit | 92a4ce54b4fb67a7b36d26c01471b1ecfc772bd7 (patch) | |
tree | a9da99f666a49303492055f571a6c12c91b93184 /test | |
parent | 1389c09ae4aa19acf522cacc67d89c26a10996cf (diff) | |
download | gleam_stdlib-92a4ce54b4fb67a7b36d26c01471b1ecfc772bd7.tar.gz gleam_stdlib-92a4ce54b4fb67a7b36d26c01471b1ecfc772bd7.zip |
handle valid query string case where no value is provided
Diffstat (limited to 'test')
-rw-r--r-- | test/gleam/uri_test.gleam | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/gleam/uri_test.gleam b/test/gleam/uri_test.gleam index 2beeed5..ecefeec 100644 --- a/test/gleam/uri_test.gleam +++ b/test/gleam/uri_test.gleam @@ -72,6 +72,11 @@ pub fn parse_empty_query_string_test() { should.equal(parsed, []) } +pub fn parse_query_string_with_empty_test() { + uri.parse_query("present") + |> should.equal(Ok([tuple("present", "")])) +} + pub fn error_parsing_query_test() { should.equal(uri.parse_query("%C2"), Error(Nil)) } |