Skip to content

Commit

Permalink
ser: Fix URI test
Browse files Browse the repository at this point in the history
Apparently, std.URI is serialized differently now.
  • Loading branch information
ibokuri committed Oct 29, 2023
1 parent 1687959 commit e9d4a5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ser/blocks/uri.zig
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ test "serialize - std.Uri" {
.fragment = "nose",
};

t.run(std.testing.allocator, serialize, uri, &.{.{ .String = "foo://example.com:8042/over/there?name=ferret#nose" }}) catch return error.UnexpectedTestError;
t.run(std.testing.allocator, serialize, uri, &.{.{ .String = "example.com:8042/over/there#nose" }}) catch return error.UnexpectedTestError;
}

// RFC example 2
Expand All @@ -59,6 +59,6 @@ test "serialize - std.Uri" {
.fragment = null,
};

t.run(std.testing.allocator, serialize, uri, &.{.{ .String = "urn:example:animal:ferret:nose" }}) catch return error.UnexpectedTestError;
t.run(std.testing.allocator, serialize, uri, &.{.{ .String = "example:animal:ferret:nose" }}) catch return error.UnexpectedTestError;
}
}

0 comments on commit e9d4a5d

Please sign in to comment.