diff options
| author | Dominic <4678790+dweiller@users.noreply.github.com> | 2023-05-08 17:59:06 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-08 10:59:06 +0300 |
| commit | 5a3eca5d4ca42f92abe60040e21ffd8e307d8466 (patch) | |
| tree | a69d1c9ccff1feeb63f6117658695703f682ccd4 /lib/std/priority_dequeue.zig | |
| parent | bac3a28214d07f761e25fcc12a6708f70c8ccc01 (diff) | |
| download | zig-5a3eca5d4ca42f92abe60040e21ffd8e307d8466.tar.gz zig-5a3eca5d4ca42f92abe60040e21ffd8e307d8466.zip | |
Disallow named test decls with duplicate names
Diffstat (limited to 'lib/std/priority_dequeue.zig')
| -rw-r--r-- | lib/std/priority_dequeue.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/priority_dequeue.zig b/lib/std/priority_dequeue.zig index db55be3804..05e3d7e58b 100644 --- a/lib/std/priority_dequeue.zig +++ b/lib/std/priority_dequeue.zig @@ -633,7 +633,7 @@ test "std.PriorityDequeue: peekMax" { try expect(queue.peekMax().? == 9); } -test "std.PriorityDequeue: sift up with odd indices" { +test "std.PriorityDequeue: sift up with odd indices, removeMin" { var queue = PDQ.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 }; @@ -647,7 +647,7 @@ test "std.PriorityDequeue: sift up with odd indices" { } } -test "std.PriorityDequeue: sift up with odd indices" { +test "std.PriorityDequeue: sift up with odd indices, removeMax" { var queue = PDQ.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 }; |
