format code.

This commit is contained in:
Kitteh 2021-06-04 19:26:40 +01:00
parent 4437e5b89b
commit cbfe5267ea
5 changed files with 5 additions and 5 deletions

View file

@ -11,4 +11,4 @@ test "serialize byte" {
try writeByte(byteList.writer(), 0x01); try writeByte(byteList.writer(), 0x01);
try std.testing.expect(std.mem.eql(u8, byteList.items, &[_]u8{0x01})); try std.testing.expect(std.mem.eql(u8, byteList.items, &[_]u8{0x01}));
} }

View file

@ -13,4 +13,4 @@ test "serialize QByteArray" {
try writeQByteArray(byteList.writer(), &[_]u8{ 11, 22, 33, 44 }); 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 })); try std.testing.expect(std.mem.eql(u8, byteList.items, &[_]u8{ 00, 00, 00, 04, 11, 22, 33, 44 }));
} }

View file

@ -22,4 +22,4 @@ test "serialize QStringList" {
try writeQStringList(byteList.writer(), std.testing.allocator, stringList.items); 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 })); 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 }));
} }

View file

@ -72,4 +72,4 @@ test "serialize QVariant String" {
try writeQVariant(byteList.writer(), std.testing.allocator, .{ .String = "ACAB" }); 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 })); 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 }));
} }

View file

@ -10,5 +10,5 @@ test "serialize Signed Byte" {
try writeSignedByte(byteList.writer(), -69); 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}));
} }