aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorblob1807 <12388588+blob1807@users.noreply.github.com>2024-04-13 00:57:36 +1000
committerblob1807 <12388588+blob1807@users.noreply.github.com>2024-04-13 00:57:36 +1000
commit6348b56c8bfced2fc202517a322bbf9505725384 (patch)
treeedc7dc30657ead97eabb3add998f24ba539a0010 /tests
parent2d1260bec9874907fd6545bfbabc0829c697b361 (diff)
Move rounded tests
Diffstat (limited to 'tests')
-rw-r--r--tests/core/net/test_core_net.odin34
1 files changed, 17 insertions, 17 deletions
diff --git a/tests/core/net/test_core_net.odin b/tests/core/net/test_core_net.odin
index 2a581c66b..52d22a9f0 100644
--- a/tests/core/net/test_core_net.odin
+++ b/tests/core/net/test_core_net.odin
@@ -531,9 +531,9 @@ split_url_test :: proc(t: ^testing.T) {
{"https://example.com/callback?redirect=https://other.com/login"},
},
{
- "http", "odin-lang.org", "/",
+ "http", "example.com", "/",
{}, "Hellope",
- {"http://odin-lang.org#Hellope"}
+ {"http://example.com#Hellope"}
},
{
"https", "odin-lang.org", "/",
@@ -542,13 +542,13 @@ split_url_test :: proc(t: ^testing.T) {
},
{
"http", "example.com", "/",
- {"a" = "b"}, "Hellope",
- {"http://example.com?a=b#Hellope"}
+ {"a" = "b"}, "BeesKnees",
+ {"http://example.com?a=b#BeesKnees"}
},
{
- "https", "example.com", "/example",
- {}, "Hellope",
- {"https://example.com/example#Hellope"}
+ "https", "odin-lang.org", "/docs/overview/",
+ {}, "hellope",
+ {"https://odin-lang.org/docs/overview/#hellope"}
},
}
@@ -628,24 +628,24 @@ join_url_test :: proc(t: ^testing.T) {
{"http://example.com/example?a&b", "http://example.com/example?b&a"},
},
{
- "http", "odin-lang.org", "",
+ "http", "example.com", "/",
{}, "Hellope",
- {"http://odin-lang.org#Hellope"}
+ {"http://example.com/#Hellope"}
},
{
- "https", "odin-lang.org", "",
+ "https", "odin-lang.org", "/",
{"a" = ""}, "Hellope",
- {"https://odin-lang.org?a#Hellope"}
+ {"https://odin-lang.org/?a#Hellope"}
},
{
- "http", "example.com", "",
- {"a" = "b"}, "Hellope",
- {"http://example.com?a=b#Hellope"}
+ "http", "example.com", "/",
+ {"a" = "b"}, "BeesKnees",
+ {"http://example.com/?a=b#BeesKnees"}
},
{
- "https", "example.com", "/example",
- {}, "Hellope",
- {"https://example.com/example#Hellope"}
+ "https", "odin-lang.org", "/docs/overview/",
+ {}, "hellope",
+ {"https://odin-lang.org/docs/overview/#hellope"}
},
}