From d27b9c72c553ee7e9fb383aa955ae1a705cde215 Mon Sep 17 00:00:00 2001 From: Danh Phan Date: Sun, 21 Apr 2024 14:53:24 -0500 Subject: [PATCH] ser: Fix std.Uri tests --- src/ser/blocks/uri.zig | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ser/blocks/uri.zig b/src/ser/blocks/uri.zig index a10ae70b..894bcc97 100644 --- a/src/ser/blocks/uri.zig +++ b/src/ser/blocks/uri.zig @@ -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; @@ -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, };