Skip to content

Commit

Permalink
increase test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Doris committed Nov 13, 2024
1 parent 3a53670 commit 9a2fa42
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/unit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,14 @@ end
end
@assert Chevy.tmp_index[] == 0
end

# syntax errors
@testset "$input" for input in [@ex(x >> y), @ex(x >> [1, 2, 3])]
@test_throws(
r"Chevy cannot substitute into `.*`; expecting `_` or a function/macro call, indexing or property access.",
chevy(input)
)
end
end

@testitem "@chevy" begin
Expand Down

0 comments on commit 9a2fa42

Please sign in to comment.