aboutsummaryrefslogtreecommitdiff
path: root/std/buf_set.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-02-09 18:57:39 -0500
committerAndrew Kelley <andrew@ziglang.org>2019-02-09 18:57:39 -0500
commit1864acd32608ae917f8afc11b11f08a4bb362cef (patch)
treed96b50a927fc67583d88c71822513594609621fb /std/buf_set.zig
parent48c1e235cb620dacc30254d0898390b4d97f3e73 (diff)
parentca8580ece1ab07215b72394cc4ab3030bf9df139 (diff)
downloadzig-1864acd32608ae917f8afc11b11f08a4bb362cef.tar.gz
zig-1864acd32608ae917f8afc11b11f08a4bb362cef.zip
Merge remote-tracking branch 'origin/master' into llvm8
Diffstat (limited to 'std/buf_set.zig')
-rw-r--r--std/buf_set.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/std/buf_set.zig b/std/buf_set.zig
index ab2d8e7c34..7ccd94c179 100644
--- a/std/buf_set.zig
+++ b/std/buf_set.zig
@@ -2,7 +2,7 @@ const std = @import("index.zig");
const HashMap = @import("hash_map.zig").HashMap;
const mem = @import("mem.zig");
const Allocator = mem.Allocator;
-const assert = std.debug.assert;
+const testing = std.testing;
pub const BufSet = struct {
hash_map: BufSetHashMap,
@@ -68,9 +68,9 @@ test "BufSet" {
defer bufset.deinit();
try bufset.put("x");
- assert(bufset.count() == 1);
+ testing.expect(bufset.count() == 1);
bufset.delete("x");
- assert(bufset.count() == 0);
+ testing.expect(bufset.count() == 0);
try bufset.put("x");
try bufset.put("y");