diff options
author | 2022-11-16 04:58:51 -0800 | |
---|---|---|
committer | 2022-11-16 04:58:51 -0800 | |
commit | 6a9bc6f6c2482f32fd29ccfc46d41f5824e3dc6d (patch) | |
tree | 592427d30b713f3c506173fb181b459c6d8f2886 /src | |
parent | bf6b1742330343c6004789f02761426aeafdb47b (diff) | |
download | bun-6a9bc6f6c2482f32fd29ccfc46d41f5824e3dc6d.tar.gz bun-6a9bc6f6c2482f32fd29ccfc46d41f5824e3dc6d.tar.zst bun-6a9bc6f6c2482f32fd29ccfc46d41f5824e3dc6d.zip |
Another test
Diffstat (limited to 'src')
-rw-r--r-- | src/url.zig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/url.zig b/src/url.zig index 7ce94cf4f..c212c3fe2 100644 --- a/src/url.zig +++ b/src/url.zig @@ -1440,6 +1440,15 @@ test "URL - parse" { try expectString("0.0.0.0:3000", url.host); try expectString("0.0.0.0", url.hostname); try expectString("3000", url.port); + + url = URL.parse("http://admin:password@0.0.0.0:3000/@bacon"); + try expectString("http", url.protocol); + try expectString("admin", url.username); + try expectString("password", url.password); + try expectString("0.0.0.0:3000", url.host); + try expectString("0.0.0.0", url.hostname); + try expectString("3000", url.port); + try expectString("/@bacon", url.pathname); } test "URL - joinAlloc" { |