diff --git a/testmodules/options/test.nim b/testmodules/options/test.nim index 796d829..21afd33 100644 --- a/testmodules/options/test.nim +++ b/testmodules/options/test.nim @@ -47,19 +47,19 @@ suite "optionals": test "=? can be used for optional binding": if a =? int.none: - check false + fail if b =? 42.some: check b == 42 else: - check false + fail while a =? 42.some: check a == 42 break while a =? int.none: - check false + fail break test "=? can appear multiple times in conditional expression": @@ -67,7 +67,7 @@ suite "optionals": check a == 42 check b == "foo" else: - check false + fail test "=? works with variable hiding": let a = 42.some diff --git a/testmodules/result/test.nim b/testmodules/result/test.nim index fc8fbcd..74bbed3 100644 --- a/testmodules/result/test.nim +++ b/testmodules/result/test.nim @@ -51,19 +51,19 @@ suite "result": test "=? can be used for optional binding": if a =? int.failure(error): - check false + fail if b =? 42.success: check b == 42 else: - check false + fail while a =? 42.success: check a == 42 break while a =? int.failure(error): - check false + fail break test "=? can appear multiple times in conditional expression": @@ -71,7 +71,7 @@ suite "result": check a == 42 check b == "foo" else: - check false + fail test "=? works with variable hiding": let a = 42.success