Skip to content

Commit

Permalink
Fix error formatting in rest_helper
Browse files Browse the repository at this point in the history
  • Loading branch information
arcusfelis committed Apr 3, 2023
1 parent 067b0d3 commit c4353a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions big_tests/tests/rest_helper.erl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ assert_inlist(Pattern, L) ->
Fl = lists:filter(fun(X) -> case X of Pattern -> true; _ -> false end end, L),
case Fl of
[] ->
ct:fail(io_lib:format("Fail: ~p not in [~p...]", [Pattern, H]));
ct:fail("Fail: ~p not in [~p...]", [Pattern, H]);
_ ->
Fl
end.
Expand All @@ -49,13 +49,13 @@ assert_notinlist(Pattern, L) ->
[] ->
ok;
_ ->
ct:fail(io_lib:format("Fail: ~p in ~p", [Pattern, L]))
ct:fail("Fail: ~p in ~p", [Pattern, L])
end.

assert_inmaplist([], Map, L, [H|_]) ->
case L of
[] ->
ct:fail(io_lib:format("Fail: ~p not in [~p...]", [Map, H]));
ct:fail("Fail: ~p not in [~p...]", [Map, H]);
_ ->
L
end;
Expand All @@ -70,7 +70,7 @@ assert_notinmaplist([], Map, L, [H|_]) ->
[] ->
ok;
_ ->
ct:fail(io_lib:format("Fail: ~p in [~p...]", [Map, H]))
ct:fail("Fail: ~p in [~p...]", [Map, H])
end;
assert_notinmaplist([K|Keys], Map, L, Orig) ->
V = maps:get(K, Map),
Expand Down

0 comments on commit c4353a6

Please sign in to comment.