Skip to content

Commit

Permalink
Don't depend on OS-specific newline and line carriage characters
Browse files Browse the repository at this point in the history
in an assertion.
  • Loading branch information
michaelklishin committed Aug 3, 2024
1 parent 720a797 commit 14a1aef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/conf_parse.erl
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,12 @@ included_dir_test() ->

invalid_included_file_test() ->
Conf = conf_parse:file("test/invalid_include_file.conf"),
?assertMatch({[], <<"includeriak.conf\n\n">>, {{line,_}, {column, _}}}, Conf),
?assertMatch({[], _PathWithNewLineAndCarriage, {{line,_}, {column, _}}}, Conf),
ok.

invalid_included_dir_test() ->
Conf = conf_parse:file("test/invalid_include_dir.conf"),
?assertMatch({[], <<"includeconf.d/*.conf\n">>, {{line, _},{column, _}}}, Conf),
?assertMatch({[], _PathWithNewLineAndCarriage, {{line, _},{column, _}}}, Conf),
ok.

escaped_dots_are_removed_test() ->
Expand Down

0 comments on commit 14a1aef

Please # to comment.