Skip to content

Commit 580ed0f

Browse files
committed
Add test for bad keywords
1 parent 2c8ce96 commit 580ed0f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/test_safe_helpers.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,8 @@ operators = OperatorEnum(;
3636
binary_operators=[+, -, *, /], unary_operators=[cos, tan], empty_old_operators=false
3737
)
3838
@test tan(x1) == sin(x1)
39+
40+
# Should catch errors in kws:
41+
@test_throws LoadError begin
42+
@eval @extend_operators operators empty_old_operators_bad_kw = true
43+
end

0 commit comments

Comments
 (0)