Skip to content

Commit 75e7628

Browse files
committed
test: re-enable some tests for errors
1 parent 5d678b0 commit 75e7628

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

test/qn_test.jl

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,6 @@ end
6464
@test_throws r"max" set_state!(qn, :A, 6)
6565
end
6666

67-
@testitem "QN Construction" setup = [RandomSetup, ExampleQN] begin
68-
initial_state_beyond_domain = [5, 5, 5]
69-
70-
# @test_throws r"<=" set_state!(qn, en
71-
end
72-
7367
@testitem "Target Function" setup = [RandomSetup, ExampleQN] begin
7468
using DynamicalSystemsBase: step!, get_state, set_state!
7569
set_state!(qn, :A, 1)
@@ -177,11 +171,10 @@ end
177171

178172
bad_models = joinpath(bma_models_path, "error_examples")
179173

180-
# @test_throws "Neither alternative" QN(joinpath(bad_models, "bad_edge_key.json"))
181-
# @test_throws "Failed to add" QN(joinpath(bad_models, "duplicate_entity_ids.json"))
182-
# @test_throws "Error while constructing name for entity" QN(
183-
# joinpath(bad_models, "multiple_incoming_edges_same_name.json"),
184-
# )
174+
@test_throws "Failed to add" QN(joinpath(bad_models, "duplicate_entity_ids.json"))
175+
@test_throws "Error while constructing name for entity" QN(
176+
joinpath(bad_models, "multiple_incoming_edges_same_name.json"),
177+
)
185178
end
186179

187180
@testitem "Save to BMA" begin

0 commit comments

Comments
 (0)