authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2017-12-14 19:55:34-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2017-12-14 19:55:34-05:00
log6bc0561d13556c50737ea0fa24af5c9468bba17a
tree951cfa383be77f0526626149119c36f1df3e305a
parent75ecfdf66db22942da349d4279b9ddaa8167788f

disable sort tests for 32-bit windows because of issue #537


1 files changed, 20 insertions(+), 0 deletions(-)

std/sort.zig+20
......@@ -1019,6 +1019,11 @@ fn cmpByValue(a: &const IdAndValue, b: &const IdAndValue) -> bool {
10191019}
10201020
10211021test "std.sort" {
1022 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
1023 // TODO get this test passing
1024 // https://github.com/zig-lang/zig/issues/537
1025 return;
1026 }
10221027 const u8cases = [][]const []const u8 {
10231028 [][]const u8{"", ""},
10241029 [][]const u8{"a", "a"},
......@@ -1055,6 +1060,11 @@ test "std.sort" {
10551060}
10561061
10571062test "std.sort descending" {
1063 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
1064 // TODO get this test passing
1065 // https://github.com/zig-lang/zig/issues/537
1066 return;
1067 }
10581068 const rev_cases = [][]const []const i32 {
10591069 [][]const i32{[]i32{}, []i32{}},
10601070 [][]const i32{[]i32{1}, []i32{1}},
......@@ -1074,6 +1084,11 @@ test "std.sort descending" {
10741084}
10751085
10761086test "another sort case" {
1087 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
1088 // TODO get this test passing
1089 // https://github.com/zig-lang/zig/issues/537
1090 return;
1091 }
10771092 var arr = []i32{ 5, 3, 1, 2, 4 };
10781093 sort(i32, arr[0..], i32asc);
10791094
......@@ -1081,6 +1096,11 @@ test "another sort case" {
10811096}
10821097
10831098test "sort fuzz testing" {
1099 if (builtin.os == builtin.Os.windows and builtin.arch == builtin.Arch.i386) {
1100 // TODO get this test passing
1101 // https://github.com/zig-lang/zig/issues/537
1102 return;
1103 }
10841104 var rng = std.rand.Rand.init(0x12345678);
10851105 const test_case_count = 10;
10861106 var i: usize = 0;