aboutsummaryrefslogtreecommitdiff
path: root/gen/bool.erl
diff options
context:
space:
mode:
Diffstat (limited to 'gen/bool.erl')
-rw-r--r--gen/bool.erl20
1 files changed, 10 insertions, 10 deletions
diff --git a/gen/bool.erl b/gen/bool.erl
index 52a9379..9024a16 100644
--- a/gen/bool.erl
+++ b/gen/bool.erl
@@ -14,10 +14,10 @@ max(A, B) ->
-ifdef(TEST).
max_test() ->
- _ = fun(Capture1) -> expect:equal(Capture1, true) end(max(true, true)),
- _ = fun(Capture1) -> expect:equal(Capture1, true) end(max(true, false)),
- _ = fun(Capture1) -> expect:equal(Capture1, false) end(max(false, false)),
- fun(Capture1) -> expect:equal(Capture1, true) end(max(false, true)).
+ _ = (fun(Capture1) -> expect:equal(Capture1, true) end)(max(true, true)),
+ _ = (fun(Capture1) -> expect:equal(Capture1, true) end)(max(true, false)),
+ _ = (fun(Capture1) -> expect:equal(Capture1, false) end)(max(false, false)),
+ (fun(Capture1) -> expect:equal(Capture1, true) end)(max(false, true)).
-endif.
min(A, B) ->
@@ -31,10 +31,10 @@ min(A, B) ->
-ifdef(TEST).
min_test() ->
- _ = fun(Capture1) -> expect:equal(Capture1, true) end(min(true, true)),
- _ = fun(Capture1) -> expect:equal(Capture1, false) end(min(true, false)),
- _ = fun(Capture1) -> expect:equal(Capture1, false) end(min(false, false)),
- fun(Capture1) -> expect:equal(Capture1, false) end(min(false, true)).
+ _ = (fun(Capture1) -> expect:equal(Capture1, true) end)(min(true, true)),
+ _ = (fun(Capture1) -> expect:equal(Capture1, false) end)(min(true, false)),
+ _ = (fun(Capture1) -> expect:equal(Capture1, false) end)(min(false, false)),
+ (fun(Capture1) -> expect:equal(Capture1, false) end)(min(false, true)).
-endif.
to_int(Bool) ->
@@ -48,6 +48,6 @@ to_int(Bool) ->
-ifdef(TEST).
to_int_test() ->
- _ = fun(Capture1) -> expect:equal(Capture1, 1) end(to_int(true)),
- fun(Capture1) -> expect:equal(Capture1, 0) end(to_int(false)).
+ _ = (fun(Capture1) -> expect:equal(Capture1, 1) end)(to_int(true)),
+ (fun(Capture1) -> expect:equal(Capture1, 0) end)(to_int(false)).
-endif.