Skip to content

Commit

Permalink
dialyzer: Fix a silly issue in testcase printout diffing
Browse files Browse the repository at this point in the history
  • Loading branch information
jhogberg authored and lucioleKi committed Nov 18, 2024
1 parent 4859dd5 commit 9e55c7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/dialyzer/test/dialyzer_common.erl
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ create_all_suites() ->
lists:foreach(fun create_suite/1, Suites).

escape_strings({differ, TestCase, List}) ->
Map = fun({T,L,S}) -> {T,L,xmerl_lib:export_text(S)} end,
{differ, TestCase, lists:keysort(3, lists:map(Map, List))}.
Escaped = [{T, L, xmerl_lib:export_text(S)} || {T, L, S} <- List],
{differ, TestCase, lists:keysort(2, Escaped)}.

-spec get_suites(file:filename()) -> [string()].

Expand Down

0 comments on commit 9e55c7c

Please sign in to comment.