From 39a3151ce7ed4b911836e5ab7b31502b77a2e9e2 Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Mon, 23 Aug 2021 11:53:12 +0100 Subject: Full uri printing --- test/gleam/uri_test.gleam | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'test') diff --git a/test/gleam/uri_test.gleam b/test/gleam/uri_test.gleam index 34c8a68..3a351ae 100644 --- a/test/gleam/uri_test.gleam +++ b/test/gleam/uri_test.gleam @@ -43,23 +43,23 @@ if erlang { pub fn error_parsing_uri_test() { should.equal(uri.parse("::"), Error(Nil)) } +} - pub fn full_uri_to_string_test() { - let test_uri = - uri.Uri( - Some("https"), - Some("foo:bar"), - Some("example.com"), - Some(1234), - "/path", - Some("query=true"), - Some("fragment"), - ) - should.equal( - uri.to_string(test_uri), - "https://foo:bar@example.com:1234/path?query=true#fragment", +pub fn full_uri_to_string_test() { + let test_uri = + uri.Uri( + Some("https"), + Some("foo:bar"), + Some("example.com"), + Some(1234), + "/path", + Some("query=true"), + Some("fragment"), ) - } + should.equal( + uri.to_string(test_uri), + "https://foo:bar@example.com:1234/path?query=true#fragment", + ) } pub fn path_only_uri_to_string_test() { -- cgit v1.2.3