Add rudimentary tests

This commit is contained in:
2023-06-22 17:24:35 +02:00
parent ea492c9ab9
commit bf23b2c175
6 changed files with 47 additions and 22 deletions

13
test/known_graphs.jl Normal file
View 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
View File

@ -0,0 +1,6 @@
using MetagraphOptimization
using Test
include("known_graphs.jl")
test_known_graphs()