aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/gleam/uri_test.gleam26
1 files changed, 12 insertions, 14 deletions
diff --git a/test/gleam/uri_test.gleam b/test/gleam/uri_test.gleam
index 1c8e0c1..779c29e 100644
--- a/test/gleam/uri_test.gleam
+++ b/test/gleam/uri_test.gleam
@@ -401,20 +401,18 @@ pub fn percent_decode_consistency_test() {
should.equal(parsed, [#(decoded_key, decoded_value)])
}
-if erlang {
- pub fn parse_segments_test() {
- should.equal(uri.path_segments("/"), [])
- should.equal(uri.path_segments("/weebl/bob"), ["weebl", "bob"])
- should.equal(uri.path_segments("////"), [])
- should.equal(uri.path_segments("/weebl//bob"), ["weebl", "bob"])
-
- should.equal(uri.path_segments("/."), [])
- should.equal(uri.path_segments("/.weebl"), [".weebl"])
-
- should.equal(uri.path_segments("/../bob"), ["bob"])
- should.equal(uri.path_segments("../bob"), ["bob"])
- should.equal(uri.path_segments("/weebl/../bob"), ["bob"])
- }
+pub fn parse_segments_test() {
+ should.equal(uri.path_segments("/"), [])
+ should.equal(uri.path_segments("/weebl/bob"), ["weebl", "bob"])
+ should.equal(uri.path_segments("////"), [])
+ should.equal(uri.path_segments("/weebl//bob"), ["weebl", "bob"])
+
+ should.equal(uri.path_segments("/."), [])
+ should.equal(uri.path_segments("/.weebl"), [".weebl"])
+
+ should.equal(uri.path_segments("/../bob"), ["bob"])
+ should.equal(uri.path_segments("../bob"), ["bob"])
+ should.equal(uri.path_segments("/weebl/../bob"), ["bob"])
}
pub fn origin1_test() {