Skip to content

Commit

Permalink
Give ArrayList tests consistent names (#1253)
Browse files Browse the repository at this point in the history
The recent change that added swapRemove used std.ArrayList as the test
name prefix. Change the other tests to use the same prefix for consistency
and making it easier to use --test-filter.
  • Loading branch information
winksaville authored and andrewrk committed Jul 17, 2018
1 parent 69e3b4e commit d1a6024
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions std/array_list.zig
Expand Up @@ -183,7 +183,7 @@ pub fn AlignedArrayList(comptime T: type, comptime A: u29) type {
};
}

test "basic ArrayList test" {
test "std.ArrayList.basic" {
var bytes: [1024]u8 = undefined;
const allocator = &std.heap.FixedBufferAllocator.init(bytes[0..]).allocator;

Expand Down Expand Up @@ -270,7 +270,7 @@ test "std.ArrayList.swapRemove" {
assert(list.len == 4);
}

test "iterator ArrayList test" {
test "std.ArrayList.iterator" {
var list = ArrayList(i32).init(debug.global_allocator);
defer list.deinit();

Expand Down Expand Up @@ -299,7 +299,7 @@ test "iterator ArrayList test" {
assert(it.next().? == 1);
}

test "insert ArrayList test" {
test "std.ArrayList.insert" {
var list = ArrayList(i32).init(debug.global_allocator);
defer list.deinit();

Expand All @@ -313,7 +313,7 @@ test "insert ArrayList test" {
assert(list.items[3] == 3);
}

test "insertSlice ArrayList test" {
test "std.ArrayList.insertSlice" {
var list = ArrayList(i32).init(debug.global_allocator);
defer list.deinit();

Expand Down

0 comments on commit d1a6024

Please sign in to comment.