Skip to content

Commit e5c2070

Browse files
committed
test fix
1 parent f7dca0b commit e5c2070

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/miscellaneous_tests/compound_macro.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ let
1919
@test iscompound(H2O_5)
2020

2121
# Other errors.
22-
@test_throws LoadError @eval @compound H2O = 2H + O
23-
@test_throws LoadError @eval @compound (H2O, [output=true]) = 2H + O
24-
@test_throws LoadError @eval @compound H2O = 1.5 ~ 2H + O
25-
@test_throws LoadError @eval @compound (H2O = 4, [output=true]) ~ 2H + O
26-
@test_throws LoadError @eval @compound (H2O = p1, [output=true]) ~ 2H + p2*O
22+
@test_throws Exception @eval @compound H2O = 2H + O
23+
@test_throws Exception @eval @compound (H2O, [output=true]) = 2H + O
24+
@test_throws Exception @eval @compound (H2O = 1.5) ~ 2H + O
25+
@test_throws Exception @eval @compound (H2O = 4, [output=true]) ~ 2H + O
26+
@test_throws Exception @eval @compound (H2O = p1, [output=true]) ~ 2H + p2*O
2727

2828
# Compounds created in block notation.
2929
@compounds begin

0 commit comments

Comments
 (0)