diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-02-12 21:35:29 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-02-12 21:35:29 -0700 |
| commit | 0b7347fd18eee7dd829cd9aaed3683123d84859b (patch) | |
| tree | 622e786fb73083368eb287248bd742e2c6aba6d3 /test/behavior/tuple.zig | |
| parent | c349191b75811f8a21e26f8b175483449fae1638 (diff) | |
| download | zig-0b7347fd18eee7dd829cd9aaed3683123d84859b.tar.gz zig-0b7347fd18eee7dd829cd9aaed3683123d84859b.zip | |
move more behavior tests to the "passing" section
Diffstat (limited to 'test/behavior/tuple.zig')
| -rw-r--r-- | test/behavior/tuple.zig | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/behavior/tuple.zig b/test/behavior/tuple.zig index 632e5be013..680de28b76 100644 --- a/test/behavior/tuple.zig +++ b/test/behavior/tuple.zig @@ -1,9 +1,12 @@ +const builtin = @import("builtin"); const std = @import("std"); const testing = std.testing; const expect = testing.expect; const expectEqual = testing.expectEqual; test "tuple concatenation" { + if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO + const S = struct { fn doTheTest() !void { var a: i32 = 1; @@ -20,6 +23,8 @@ test "tuple concatenation" { } test "tuple multiplication" { + if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO + const S = struct { fn doTheTest() !void { { @@ -81,6 +86,8 @@ test "tuple multiplication" { } test "pass tuple to comptime var parameter" { + if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO + const S = struct { fn Foo(comptime args: anytype) !void { try expect(args[0] == 1); @@ -95,6 +102,8 @@ test "pass tuple to comptime var parameter" { } test "tuple initializer for var" { + if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO + const S = struct { fn doTheTest() void { const Bytes = struct { @@ -114,6 +123,8 @@ test "tuple initializer for var" { } test "array-like initializer for tuple types" { + if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO + const T = @Type(std.builtin.TypeInfo{ .Struct = std.builtin.TypeInfo.Struct{ .is_tuple = true, |
