Skip to content

Commit

Permalink
ser: Fix std.Uri tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ibokuri committed Apr 21, 2024
1 parent c8967a0 commit d27b9c7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/ser/blocks/uri.zig
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ test "serialize - std.Uri" {
.scheme = "foo",
.user = null,
.password = null,
.host = "example.com",
.host = .{ .raw = "example.com" },
.port = 8042,
.path = "/over/there",
.query = "name=ferret",
.fragment = "nose",
.path = .{ .raw = "/over/there" },
.query = .{ .raw = "name=ferret" },
.fragment = .{ .raw = "nose" },
};

t.run(std.testing.allocator, serialize, uri, &.{.{ .String = "example.com:8042/over/there#nose" }}) catch return error.UnexpectedTestError;
Expand All @@ -56,7 +56,7 @@ test "serialize - std.Uri" {
.password = null,
.host = null,
.port = null,
.path = "example:animal:ferret:nose",
.path = .{ .raw = "example:animal:ferret:nose" },
.query = null,
.fragment = null,
};
Expand Down

0 comments on commit d27b9c7

Please sign in to comment.