From 14a1aef75e28bb21b2ad8f0874a246a0d82af181 Mon Sep 17 00:00:00 2001 From: Michael Klishin Date: Sat, 3 Aug 2024 15:37:56 -0400 Subject: [PATCH] Don't depend on OS-specific newline and line carriage characters in an assertion. --- src/conf_parse.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/conf_parse.erl b/src/conf_parse.erl index cd12b26..7f48a0a 100644 --- a/src/conf_parse.erl +++ b/src/conf_parse.erl @@ -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() ->