diff options
author | Louis Pilfold <louis@lpil.uk> | 2021-08-22 19:28:06 +0100 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2021-08-23 16:08:19 +0100 |
commit | 188319d5620126442635124f143ad7ff66455ebe (patch) | |
tree | 4ace3b6f5fcba576141545ae6e93a148ca15fdeb /test | |
parent | 5a6f1f93f87eb2e0ef2718dfdb8a7fd2e7d21346 (diff) | |
download | gleam_stdlib-188319d5620126442635124f143ad7ff66455ebe.tar.gz gleam_stdlib-188319d5620126442635124f143ad7ff66455ebe.zip |
Handle empty host
Diffstat (limited to 'test')
-rw-r--r-- | test/gleam/uri_test.gleam | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/gleam/uri_test.gleam b/test/gleam/uri_test.gleam index 45fe73e..46ac2a5 100644 --- a/test/gleam/uri_test.gleam +++ b/test/gleam/uri_test.gleam @@ -114,6 +114,10 @@ pub fn host_to_string_test() { uri.Uri(None, None, Some("example.com"), None, "noslash", None, None) |> uri.to_string |> should.equal("//example.com/noslash") + + uri.Uri(None, None, Some(""), None, "", None, None) + |> uri.to_string + |> should.equal("//") } pub fn port_to_string_test() { |