From fd77f2cfed81f3414c079909e079a812e23071c3 Mon Sep 17 00:00:00 2001 From: Veikka Tuominen Date: Tue, 4 May 2021 20:47:26 +0300 Subject: std: update usage of std.testing --- lib/std/atomic/bool.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/std/atomic/bool.zig') diff --git a/lib/std/atomic/bool.zig b/lib/std/atomic/bool.zig index 0cffb99d38..1c6ac8d046 100644 --- a/lib/std/atomic/bool.zig +++ b/lib/std/atomic/bool.zig @@ -47,9 +47,9 @@ pub const Bool = extern struct { test "std.atomic.Bool" { var a = Bool.init(false); - testing.expectEqual(false, a.xchg(false, .SeqCst)); - testing.expectEqual(false, a.load(.SeqCst)); + try testing.expectEqual(false, a.xchg(false, .SeqCst)); + try testing.expectEqual(false, a.load(.SeqCst)); a.store(true, .SeqCst); - testing.expectEqual(true, a.xchg(false, .SeqCst)); - testing.expectEqual(false, a.load(.SeqCst)); + try testing.expectEqual(true, a.xchg(false, .SeqCst)); + try testing.expectEqual(false, a.load(.SeqCst)); } -- cgit v1.2.3