Skip to content

Commit

Permalink
example(hostname): fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
divyenduz committed Oct 21, 2024
1 parent 11ae6f4 commit a8cc78e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/pghostname_zig/src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ fn pghostname_zig() ![]const u8 {

const Testsuite1 = struct {
pub fn testHappyPath() !void {
const expected_hostname: u32 = 3;
const expected_hostname = "ubuntu";
const actual_hostname = try pghostname_zig();
try std.testing.expectEqual(expected_hostname, actual_hostname);
try std.testing.expectEqualStrings(expected_hostname, actual_hostname);
}
};

Expand Down

0 comments on commit a8cc78e

Please sign in to comment.