From d1a60243c9e112ccd36334cec3ab55eea6f823a8 Mon Sep 17 00:00:00 2001 From: Wink Saville Date: Tue, 17 Jul 2018 07:28:08 -0700 Subject: [PATCH] Give ArrayList tests consistent names (#1253) 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. --- std/array_list.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/std/array_list.zig b/std/array_list.zig index 2c8b5070a7..8a9037a033 100644 --- a/std/array_list.zig +++ b/std/array_list.zig @@ -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; @@ -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(); @@ -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(); @@ -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();