Skip to content

Commit dc7504d

Browse files
authored
Fix FactorGraph import test bug. (#280)
1 parent 53e7a37 commit dc7504d

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

test/LightFactorGraphsTests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ end
4343
@testset "LightDFGs.FactorGraphs" begin
4444

4545

46-
@test isa(FactorGraph(), FactorGraph{Int64,AbstractDFGVariable,AbstractDFGFactor})
46+
@test isa(FactorGraphs.FactorGraph(), FactorGraph{Int64,AbstractDFGVariable,AbstractDFGFactor})
4747

48-
fg = FactorGraph{Int, SkeletonDFGVariable, SkeletonDFGFactor}()
48+
fg = FactorGraphs.FactorGraph{Int, SkeletonDFGVariable, SkeletonDFGFactor}()
4949

5050
@test !FactorGraphs.is_directed(fg)
5151
@test !FactorGraphs.is_directed(FactorGraph{Int, SkeletonDFGVariable, SkeletonDFGFactor})

test/runtests.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ struct TestCCW1{T} <: ConvolutionObject where {T<:FunctorInferenceType} end
4141
include("compareTests.jl")
4242
end
4343

44+
@testset "Testing LightDFG.FactorGraphs functions" begin
45+
include("LightFactorGraphsTests.jl")
46+
end
47+
4448
# Test each interface
4549
apis = [
4650
LightDFG,
@@ -140,9 +144,6 @@ else
140144
@warn "Skipping IncrementalInference driver tests"
141145
end
142146

143-
@testset "Testing LightDFG.FactorGraphs functions" begin
144-
include("LightFactorGraphsTests.jl")
145-
end
146147

147148
struct NotImplementedDFG <: AbstractDFG end
148149

0 commit comments

Comments
 (0)