This commit is contained in:
Kitteh 2021-06-01 13:32:44 +01:00
parent e69d037cad
commit 6328879b96

View file

@ -76,7 +76,8 @@ test "read/write bytearray" {
for (arr.items) |item, index| { for (arr.items) |item, index| {
try std.io.getStdErr().writer().print("{d} vs {d} \n", .{ item, val.items[index] }); try std.io.getStdErr().writer().print("{d} vs {d} \n", .{ item, val.items[index] });
try std.testing.expect(item == val.items[index]); try std.testing.expect(item == val.items[index]);
}} }
}
test "read/write stringlist" { test "read/write stringlist" {
var byteList = std.ArrayList(u8).init(global_allocator); var byteList = std.ArrayList(u8).init(global_allocator);
@ -128,4 +129,4 @@ test "read/write int variant" {
var val = try read.get_variant(fBS.reader(), global_allocator); var val = try read.get_variant(fBS.reader(), global_allocator);
try expect(val.int == 1312); try expect(val.int == 1312);
} }