From a6a1e6ba71a89384388d1bfc6968372118a312d1 Mon Sep 17 00:00:00 2001 From: Kitteh Date: Fri, 4 Jun 2021 19:28:00 +0100 Subject: [PATCH] Make some code neater. --- src/qtshit/write/writeString.zig | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/qtshit/write/writeString.zig b/src/qtshit/write/writeString.zig index 301b949..a1ea4a7 100644 --- a/src/qtshit/write/writeString.zig +++ b/src/qtshit/write/writeString.zig @@ -19,16 +19,5 @@ test "serialize String" { try writeString(byteList.writer(), std.testing.allocator, "owo"); - try std.testing.expect(std.mem.eql(u8, byteList.items, &[_]u8{ - 0, - 0, - 0, - 6, - 0, - 111, - 0, - 119, - 0, - 111, - })); + try std.testing.expect(std.mem.eql(u8, byteList.items, &[_]u8{ 0x00, 0x00, 0x00, 0x06, 0x00, 0x6f, 0x00, 0x77, 0x00, 0x6f })); }