diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/std/priority_queue.zig | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/std/priority_queue.zig b/lib/std/priority_queue.zig index 1a52fda5be..ebc13a9974 100644 --- a/lib/std/priority_queue.zig +++ b/lib/std/priority_queue.zig @@ -286,7 +286,6 @@ const PQlt = PriorityQueue(u32, void, lessThan); const PQgt = PriorityQueue(u32, void, greaterThan); test "std.PriorityQueue: add and remove min heap" { - if (@import("builtin").zig_backend != .stage1) return error.SkipZigTest; // TODO var queue = PQlt.init(testing.allocator, {}); defer queue.deinit(); @@ -305,7 +304,6 @@ test "std.PriorityQueue: add and remove min heap" { } test "std.PriorityQueue: add and remove same min heap" { - if (@import("builtin").zig_backend != .stage1) return error.SkipZigTest; // TODO var queue = PQlt.init(testing.allocator, {}); defer queue.deinit(); @@ -355,7 +353,6 @@ test "std.PriorityQueue: peek" { } test "std.PriorityQueue: sift up with odd indices" { - if (@import("builtin").zig_backend != .stage1) return error.SkipZigTest; // TODO var queue = PQlt.init(testing.allocator, {}); defer queue.deinit(); const items = [_]u32{ 15, 7, 21, 14, 13, 22, 12, 6, 7, 25, 5, 24, 11, 16, 15, 24, 2, 1 }; @@ -370,7 +367,6 @@ test "std.PriorityQueue: sift up with odd indices" { } test "std.PriorityQueue: addSlice" { - if (@import("builtin").zig_backend != .stage1) return error.SkipZigTest; // TODO var queue = PQlt.init(testing.allocator, {}); defer queue.deinit(); const items = [_]u32{ 15, 7, 21, 14, 13, 22, 12, 6, 7, 25, 5, 24, 11, 16, 15, 24, 2, 1 }; @@ -403,7 +399,6 @@ test "std.PriorityQueue: fromOwnedSlice trivial case 1" { } test "std.PriorityQueue: fromOwnedSlice" { - if (@import("builtin").zig_backend != .stage1) return error.SkipZigTest; const items = [_]u32{ 15, 7, 21, 14, 13, 22, 12, 6, 7, 25, 5, 24, 11, 16, 15, 24, 2, 1 }; const heap_items = try testing.allocator.dupe(u32, items[0..]); var queue = PQlt.fromOwnedSlice(testing.allocator, heap_items[0..], {}); @@ -416,7 +411,6 @@ test "std.PriorityQueue: fromOwnedSlice" { } test "std.PriorityQueue: add and remove max heap" { - if (@import("builtin").zig_backend != .stage1) return error.SkipZigTest; // TODO var queue = PQgt.init(testing.allocator, {}); defer queue.deinit(); @@ -435,7 +429,6 @@ test "std.PriorityQueue: add and remove max heap" { } test "std.PriorityQueue: add and remove same max heap" { - if (@import("builtin").zig_backend != .stage1) return error.SkipZigTest; // TODO var queue = PQgt.init(testing.allocator, {}); defer queue.deinit(); @@ -476,7 +469,6 @@ test "std.PriorityQueue: iterator" { } test "std.PriorityQueue: remove at index" { - if (@import("builtin").zig_backend != .stage1) return error.SkipZigTest; // TODO var queue = PQlt.init(testing.allocator, {}); defer queue.deinit(); @@ -512,7 +504,6 @@ test "std.PriorityQueue: iterator while empty" { } test "std.PriorityQueue: shrinkAndFree" { - if (@import("builtin").zig_backend != .stage1) return error.SkipZigTest; // TODO var queue = PQlt.init(testing.allocator, {}); defer queue.deinit(); @@ -536,7 +527,6 @@ test "std.PriorityQueue: shrinkAndFree" { } test "std.PriorityQueue: update min heap" { - if (@import("builtin").zig_backend != .stage1) return error.SkipZigTest; // TODO var queue = PQlt.init(testing.allocator, {}); defer queue.deinit(); @@ -552,7 +542,6 @@ test "std.PriorityQueue: update min heap" { } test "std.PriorityQueue: update same min heap" { - if (@import("builtin").zig_backend != .stage1) return error.SkipZigTest; // TODO var queue = PQlt.init(testing.allocator, {}); defer queue.deinit(); @@ -569,7 +558,6 @@ test "std.PriorityQueue: update same min heap" { } test "std.PriorityQueue: update max heap" { - if (@import("builtin").zig_backend != .stage1) return error.SkipZigTest; // TODO var queue = PQgt.init(testing.allocator, {}); defer queue.deinit(); @@ -585,7 +573,6 @@ test "std.PriorityQueue: update max heap" { } test "std.PriorityQueue: update same max heap" { - if (@import("builtin").zig_backend != .stage1) return error.SkipZigTest; // TODO var queue = PQgt.init(testing.allocator, {}); defer queue.deinit(); @@ -602,7 +589,6 @@ test "std.PriorityQueue: update same max heap" { } test "std.PriorityQueue: siftUp in remove" { - if (@import("builtin").zig_backend != .stage1) return error.SkipZigTest; // TODO var queue = PQlt.init(testing.allocator, {}); defer queue.deinit(); @@ -623,7 +609,6 @@ fn contextLessThan(context: []const u32, a: usize, b: usize) Order { const CPQlt = PriorityQueue(usize, []const u32, contextLessThan); test "std.PriorityQueue: add and remove min heap with contextful comparator" { - if (@import("builtin").zig_backend != .stage1) return error.SkipZigTest; // TODO const context = [_]u32{ 5, 3, 4, 2, 2, 8, 0 }; var queue = CPQlt.init(testing.allocator, context[0..]); |
