From ab0c90bfb62f1b35656610d2345cd3d1c8fdafb6 Mon Sep 17 00:00:00 2001 From: Vivianne Langdon Date: Mon, 17 Jul 2023 03:16:01 -0700 Subject: [PATCH] Simplify --- src/main.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.zig b/src/main.zig index c0d311b..08b23bb 100644 --- a/src/main.zig +++ b/src/main.zig @@ -97,7 +97,7 @@ test "serialize floats" { try getty.serialize(null, @as(f64, 42.42), s); try getty.serialize(null, @as(f32, 42.42), s); - try testing.expectEqualSlices(u8, arr.items, &[_]u8{ 'D', 64, 69, 53, 194, 143, 92, 40, 246, 'F', 66, 41, 174, 20 }); + try testing.expectEqualStrings(arr.items, &[_]u8{ 'D', 64, 69, 53, 194, 143, 92, 40, 246, 'F', 66, 41, 174, 20 }); } test "serialize strs" {