Skip to content

Commit

Permalink
Imported Error
Browse files Browse the repository at this point in the history
  • Loading branch information
MicheleCeresoli committed Nov 23, 2023
1 parent 1f309e3 commit 469a045
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ using Test

using Graphs

import JSMDInterfaces.Errors: NotImplementedError
import JSMDInterfaces.Graph as jGraph
import SMDGraphs: MappedGraph, MappedDiGraph, MappedNodeGraph

Expand All @@ -20,7 +21,7 @@ SMDGraphs.get_node_id(n::IntNode) = n.id
@testset "SMDGraphs.jl" begin

# Check Error Enforcement
@test_throws ErrorException SMDGraphs.get_node_id(FakeNode(7))
@test_throws NotImplementedError SMDGraphs.get_node_id(FakeNode(7))

# Test MappedGraph Constructor
graph = MappedGraph(IntNode)
Expand Down

0 comments on commit 469a045

Please sign in to comment.