Use SafeTestsets for testing (#22)

Fixes issue #18

Reviewed-on: Rubydragon/MetagraphOptimization.jl#22
Co-authored-by: Anton Reinhard <anton.reinhard@proton.me>
Co-committed-by: Anton Reinhard <anton.reinhard@proton.me>
This commit is contained in:
2023-11-22 16:01:17 +01:00
committed by Anton Reinhard
parent b7560685d4
commit 04d5673b44
13 changed files with 587 additions and 592 deletions

View File

@ -1,3 +1,4 @@
using MetagraphOptimization
using Random
function test_known_graph(name::String, n, fusion_test = true)
@ -88,9 +89,6 @@ end
Random.seed!(0)
@testset "Test Known ABC-Graphs" begin
test_known_graph("AB->AB", 10000)
test_known_graph("AB->ABBB", 10000)
test_known_graph("AB->ABBBBB", 1000, false)
end
println("Known Graph Testing Complete!")
test_known_graph("AB->AB", 10000)
test_known_graph("AB->ABBB", 10000)
test_known_graph("AB->ABBBBB", 1000, false)