format code.
This commit is contained in:
parent
4437e5b89b
commit
cbfe5267ea
|
@ -11,4 +11,4 @@ test "serialize byte" {
|
|||
try writeByte(byteList.writer(), 0x01);
|
||||
|
||||
try std.testing.expect(std.mem.eql(u8, byteList.items, &[_]u8{0x01}));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,4 +13,4 @@ test "serialize QByteArray" {
|
|||
try writeQByteArray(byteList.writer(), &[_]u8{ 11, 22, 33, 44 });
|
||||
|
||||
try std.testing.expect(std.mem.eql(u8, byteList.items, &[_]u8{ 00, 00, 00, 04, 11, 22, 33, 44 }));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,4 +22,4 @@ test "serialize QStringList" {
|
|||
try writeQStringList(byteList.writer(), std.testing.allocator, stringList.items);
|
||||
|
||||
try std.testing.expect(std.mem.eql(u8, byteList.items, &[_]u8{ 0, 0, 0, 2, 0, 0, 0, 6, 0, 117, 0, 119, 0, 117, 0, 0, 0, 6, 0, 111, 0, 119, 0, 111 }));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -72,4 +72,4 @@ test "serialize QVariant String" {
|
|||
try writeQVariant(byteList.writer(), std.testing.allocator, .{ .String = "ACAB" });
|
||||
|
||||
try std.testing.expect(std.mem.eql(u8, byteList.items, &[_]u8{ 0, 0, 0, 10, 0, 0, 0, 0, 8, 0, 65, 0, 67, 0, 65, 0, 66 }));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,5 +10,5 @@ test "serialize Signed Byte" {
|
|||
|
||||
try writeSignedByte(byteList.writer(), -69);
|
||||
|
||||
try std.testing.expect(std.mem.eql(u8, byteList.items, &[_]u8{ 0xBB }));
|
||||
try std.testing.expect(std.mem.eql(u8, byteList.items, &[_]u8{0xBB}));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue