| ... | ... | @@ -1707,15 +1707,16 @@ test "vector" { |
| 1707 | 1707 | // https://github.com/ziglang/zig/issues/4486 |
| 1708 | 1708 | return error.SkipZigTest; |
| 1709 | 1709 | } |
| 1710 | | 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}); |
| 1710 | if (builtin.arch == .wasm32) { |
| 1711 | // https://github.com/ziglang/zig/issues/5339 |
| 1712 | return error.SkipZigTest; |
| 1714 | 1713 | } |
| 1715 | 1714 | |
| 1715 | const vbool: std.meta.Vector(4, bool) = [_]bool{ true, false, true, false }; |
| 1716 | 1716 | const vi64: std.meta.Vector(4, i64) = [_]i64{ -2, -1, 0, 1 }; |
| 1717 | 1717 | const vu64: std.meta.Vector(4, u64) = [_]u64{ 1000, 2000, 3000, 4000 }; |
| 1718 | 1718 | |
| 1719 | try testFmt("{ true, false, true, false }", "{}", .{vbool}); |
| 1719 | 1720 | try testFmt("{ -2, -1, 0, 1 }", "{}", .{vi64}); |
| 1720 | 1721 | try testFmt("{ - 2, - 1, + 0, + 1 }", "{d:5}", .{vi64}); |
| 1721 | 1722 | try testFmt("{ 1000, 2000, 3000, 4000 }", "{}", .{vu64}); |