Skip to content

Commit

Permalink
Fix to parser tests
Browse files Browse the repository at this point in the history
  • Loading branch information
moyner committed Jan 28, 2024
1 parent eaf1537 commit 21b2439
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parser.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 21b2439

Please sign in to comment.