aboutsummaryrefslogtreecommitdiff
path: root/std/array_list.zig
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-01-09 09:56:24 -0500
committerAndrew Kelley <superjoe30@gmail.com>2018-01-09 09:56:24 -0500
commitd1d3dbc7b5bc986849db476e491300ffd18d4db5 (patch)
tree8ab3bb2b5b8a82edf18caca6e28dc8e74ab81d11 /std/array_list.zig
parent5a8d87f5042b5ab86de7c72df4ce84a314878e40 (diff)
parent3c094116aae459b651934663a31981cf09cdb3e4 (diff)
downloadzig-d1d3dbc7b5bc986849db476e491300ffd18d4db5.tar.gz
zig-d1d3dbc7b5bc986849db476e491300ffd18d4db5.zip
Merge branch 'master' into llvm6
Diffstat (limited to 'std/array_list.zig')
-rw-r--r--std/array_list.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/std/array_list.zig b/std/array_list.zig
index f07b9fb7f5..a16dec113c 100644
--- a/std/array_list.zig
+++ b/std/array_list.zig
@@ -116,7 +116,7 @@ test "basic ArrayList test" {
defer list.deinit();
{var i: usize = 0; while (i < 10) : (i += 1) {
- %%list.append(i32(i + 1));
+ list.append(i32(i + 1)) catch unreachable;
}}
{var i: usize = 0; while (i < 10) : (i += 1) {
@@ -126,13 +126,13 @@ test "basic ArrayList test" {
assert(list.pop() == 10);
assert(list.len == 9);
- %%list.appendSlice([]const i32 { 1, 2, 3 });
+ list.appendSlice([]const i32 { 1, 2, 3 }) catch unreachable;
assert(list.len == 12);
assert(list.pop() == 3);
assert(list.pop() == 2);
assert(list.pop() == 1);
assert(list.len == 9);
- %%list.appendSlice([]const i32 {});
+ list.appendSlice([]const i32 {}) catch unreachable;
assert(list.len == 9);
}