Make some code neater.
This commit is contained in:
parent
cbfe5267ea
commit
a6a1e6ba71
|
@ -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 }));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue