Skip to content

Commit

Permalink
Align tests with new codestructure
Browse files Browse the repository at this point in the history
  • Loading branch information
gwehrle committed Nov 27, 2024
1 parent 5bcc42e commit 7f90f7f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,12 @@ configure!(;
@test Overpass.replace_shortcuts(
"Lorem {{ bbox \n}} {{\ncenter \n\n }} ipsum", (1, 2, 3, 4), (5, 6)) ==
"Lorem 1,2,3,4 5,6 ipsum"
end

@test_throws MissingException Overpass.replace_shortcuts(
"{{bbox}}", nothing, nothing)
@test_throws MissingException Overpass.replace_shortcuts(
"{{center}}", nothing, nothing)
@test_throws DomainError Overpass.replace_shortcuts(
"{{ custom }}", nothing, nothing)
@testset "check_remaining_shortcuts" begin
@test_throws MissingException Overpass.check_remaining_shortcuts("{{bbox}}")
@test_throws MissingException Overpass.check_remaining_shortcuts("{{center}}")
@test_throws DomainError Overpass.check_remaining_shortcuts("{{ custom }}")
end
end

Expand Down

0 comments on commit 7f90f7f

Please sign in to comment.