| author | |
| committer | |
| log | dfe9cae4eb9ebd1409759f82a6f7ab9336a6da6b |
| tree | 1c0baad05ca188cf6293af9ed91cc983a02bd260 |
| parent | 1c85b0acbb5148dec7ff671e767354f3df5c6b83 |
moves some tests that store to global variables to their own category
instead of being named after a GitHub issue.3 files changed, 32 insertions(+), 22 deletions(-)
test/behavior.zig+1-1| ... | @@ -169,6 +169,7 @@ test { | ... | @@ -169,6 +169,7 @@ test { |
| 169 | _ = @import("behavior/fn_in_struct_in_comptime.zig"); | 169 | _ = @import("behavior/fn_in_struct_in_comptime.zig"); |
| 170 | _ = @import("behavior/for.zig"); | 170 | _ = @import("behavior/for.zig"); |
| 171 | _ = @import("behavior/generics.zig"); | 171 | _ = @import("behavior/generics.zig"); |
| 172 | _ = @import("behavior/globals.zig"); | ||
| 172 | _ = @import("behavior/hasdecl.zig"); | 173 | _ = @import("behavior/hasdecl.zig"); |
| 173 | _ = @import("behavior/hasfield.zig"); | 174 | _ = @import("behavior/hasfield.zig"); |
| 174 | _ = @import("behavior/if.zig"); | 175 | _ = @import("behavior/if.zig"); |
| ... | @@ -252,7 +253,6 @@ test { | ... | @@ -252,7 +253,6 @@ test { |
| 252 | builtin.zig_backend != .stage2_c and | 253 | builtin.zig_backend != .stage2_c and |
| 253 | builtin.zig_backend != .stage2_spirv64) | 254 | builtin.zig_backend != .stage2_spirv64) |
| 254 | { | 255 | { |
| 255 | _ = @import("behavior/bugs/13063.zig"); | ||
| 256 | _ = @import("behavior/bugs/11227.zig"); | 256 | _ = @import("behavior/bugs/11227.zig"); |
| 257 | _ = @import("behavior/bugs/14198.zig"); | 257 | _ = @import("behavior/bugs/14198.zig"); |
| 258 | _ = @import("behavior/export.zig"); | 258 | _ = @import("behavior/export.zig"); |
test/behavior/bugs/13063.zig deleted-21| ... | @@ -1,21 +0,0 @@ | ||
| 1 | const std = @import("std"); | ||
| 2 | const builtin = @import("builtin"); | ||
| 3 | const expect = std.testing.expect; | ||
| 4 | |||
| 5 | var pos = [2]f32{ 0.0, 0.0 }; | ||
| 6 | test "store to global array" { | ||
| 7 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | ||
| 8 | |||
| 9 | try expect(pos[1] == 0.0); | ||
| 10 | pos = [2]f32{ 0.0, 1.0 }; | ||
| 11 | try expect(pos[1] == 1.0); | ||
| 12 | } | ||
| 13 | |||
| 14 | var vpos = @Vector(2, f32){ 0.0, 0.0 }; | ||
| 15 | test "store to global vector" { | ||
| 16 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO | ||
| 17 | |||
| 18 | try expect(vpos[1] == 0.0); | ||
| 19 | vpos = @Vector(2, f32){ 0.0, 1.0 }; | ||
| 20 | try expect(vpos[1] == 1.0); | ||
| 21 | } | ||
test/behavior/globals.zig created+31| ... | @@ -0,0 +1,31 @@ | ||
| 1 | const std = @import("std"); | ||
| 2 | const builtin = @import("builtin"); | ||
| 3 | const expect = std.testing.expect; | ||
| 4 | |||
| 5 | var pos = [2]f32{ 0.0, 0.0 }; | ||
| 6 | test "store to global array" { | ||
| 7 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; | ||
| 8 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | ||
| 9 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; | ||
| 10 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | ||
| 11 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; | ||
| 12 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 13 | |||
| 14 | try expect(pos[1] == 0.0); | ||
| 15 | pos = [2]f32{ 0.0, 1.0 }; | ||
| 16 | try expect(pos[1] == 1.0); | ||
| 17 | } | ||
| 18 | |||
| 19 | var vpos = @Vector(2, f32){ 0.0, 0.0 }; | ||
| 20 | test "store to global vector" { | ||
| 21 | if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; | ||
| 22 | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; | ||
| 23 | if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; | ||
| 24 | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; | ||
| 25 | if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; | ||
| 26 | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; | ||
| 27 | |||
| 28 | try expect(vpos[1] == 0.0); | ||
| 29 | vpos = @Vector(2, f32){ 0.0, 1.0 }; | ||
| 30 | try expect(vpos[1] == 1.0); | ||
| 31 | } | ||