authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2020-05-28 23:32:17+02:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2020-05-28 23:32:17+02:00
log3dbe376c776ce67720ba2ccc9220386b380d5e2f
tree429a030ffbaf3a504e142a7b2c2152ad98b59da3
parent2ae9e06363b294f60b62e765d31fce4417e14a9d

Link issue to the failing test case targeting wasm


1 files changed, 4 insertions(+), 3 deletions(-)

lib/std/fmt.zig+4-3
......@@ -1708,14 +1708,15 @@ test "vector" {
17081708 return error.SkipZigTest;
17091709 }
17101710 if (builtin.arch != .wasm32) {
1711 // TODO investigate why this fails on wasm32
1712 const vbool: std.meta.Vector(4, bool) = [_]bool{ true, false, true, false };
1713 try testFmt("{ true, false, true, false }", "{}", .{vbool});
1711 // https://github.com/ziglang/zig/issues/5339
1712 return error.SkipZigTest;
17141713 }
17151714
1715 const vbool: std.meta.Vector(4, bool) = [_]bool{ true, false, true, false };
17161716 const vi64: std.meta.Vector(4, i64) = [_]i64{ -2, -1, 0, 1 };
17171717 const vu64: std.meta.Vector(4, u64) = [_]u64{ 1000, 2000, 3000, 4000 };
17181718
1719 try testFmt("{ true, false, true, false }", "{}", .{vbool});
17191720 try testFmt("{ -2, -1, 0, 1 }", "{}", .{vi64});
17201721 try testFmt("{ - 2, - 1, + 0, + 1 }", "{d:5}", .{vi64});
17211722 try testFmt("{ 1000, 2000, 3000, 4000 }", "{}", .{vu64});