Skip to content

Commit 81c5c4e

Browse files
committed
Test error thrown by formula macro
1 parent f01679a commit 81c5c4e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/formula.jl

+3
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,7 @@ t = Terms(@formula(y ~ x1 * x2 * x3))
105105
## @test t.terms == [:x2, :(x1&x2)] # == [:(1 & x1)]
106106
## @test t.eterms == [:y, :x1, :x2]
107107

108+
# Incorrect formula separator
109+
@test_throws ErrorException eval(:(@formula(y => x + 1)))
110+
108111
end

0 commit comments

Comments
 (0)