From 21b2439d0c8bbe9aadcc81606fdd3b59b8f51623 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olav=20M=C3=B8yner?= Date: Sun, 28 Jan 2024 19:37:19 +0100 Subject: [PATCH] Fix to parser tests --- test/parser.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parser.jl b/test/parser.jl index 9aed7c8a..6179fe81 100644 --- a/test/parser.jl +++ b/test/parser.jl @@ -6,8 +6,8 @@ import JutulDarcy.InputParser: clean_include_path, parse_defaulted_line @test clean_include_path("/some/path", " 'MYFILE'") == joinpath("/some/path", "MYFILE") @test clean_include_path("/some/path", " ./MYFILE") == joinpath("/some/path", "MYFILE") @test clean_include_path("/some/path", " './MYFILE'") == joinpath("/some/path", "MYFILE") - @test clean_include_path("/some/path", " 'INCLUDE/file.txt' / (Some comment)") == "/some/path/INCLUDE/file.txt" - @test clean_include_path("/some/path", " 'INCLUDE/file.txt'/(Some comment)") == "/some/path/INCLUDE/file.txt" + @test clean_include_path("/some/path", " 'file.txt' / (Some comment)") == joinpath("/some/path", "file.txt") + @test clean_include_path("/some/path", " 'file.txt'/(Some comment)") == joinpath("/some/path", "file.txt") @test parse_defaulted_line("3.0 2* 7", [1.0, 2, 3, 4]) == [3.0, 2, 3, 7] @test parse_defaulted_line("2.0", [1.0, 2, 3, 4]) == [2.0, 2, 3, 4]