Add rudimentary tests
This commit is contained in:
13
test/known_graphs.jl
Normal file
13
test/known_graphs.jl
Normal file
@ -0,0 +1,13 @@
|
||||
using MetagraphOptimization
|
||||
using Test
|
||||
|
||||
function test_known_graphs()
|
||||
|
||||
g_ABAB = import_txt(joinpath(@__DIR__, "..", "examples", "AB->AB.txt"))
|
||||
props = graph_properties(g_ABAB)
|
||||
|
||||
@test length(g_ABAB.nodes) == 34
|
||||
@test props.compute_effort == 185
|
||||
@test props.data == 102
|
||||
|
||||
end
|
6
test/runtests.jl
Normal file
6
test/runtests.jl
Normal file
@ -0,0 +1,6 @@
|
||||
using MetagraphOptimization
|
||||
using Test
|
||||
|
||||
include("known_graphs.jl")
|
||||
|
||||
test_known_graphs()
|
Reference in New Issue
Block a user