| ... | ... | @@ -586,6 +586,11 @@ test "file" { |
| 586 | 586 | try std.testing.expectEqualStrings("file", parsed3.scheme); |
| 587 | 587 | try std.testing.expectEqualStrings("localhost", parsed3.host.?.percent_encoded); |
| 588 | 588 | try std.testing.expectEqualStrings("/an/absolute/path/to/another/thing/", parsed3.path.percent_encoded); |
| 589 | |
| 590 | const parsed4 = try parse("file:/an/absolute/path"); |
| 591 | try std.testing.expectEqualStrings("file", parsed4.scheme); |
| 592 | try std.testing.expectEqual(@as(?Component, null), parsed4.host); |
| 593 | try std.testing.expectEqualStrings("/an/absolute/path", parsed4.path.percent_encoded); |
| 589 | 594 | } |
| 590 | 595 | |
| 591 | 596 | test "scheme" { |