Skip to content

Commit 5206f63

Browse files
committed
Temporary test agains ApproxManifoldProducts develop branch
1 parent c666bc1 commit 5206f63

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

test/runtests.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ end
6363
if get(ENV, "IIF_TEST", "true") == "true"
6464

6565
# Switch to our upstream test branch.
66+
#FIXME This is a temporary fix to use the develop branch of AMP.
67+
Pkg.add(PackageSpec(; name = "ApproxManifoldProducts", rev = "develop"))
6668
#FIXME This is a temporary fix to use the develop branch of IIF.
6769
# Pkg.add(PackageSpec(; name = "IncrementalInference", rev = "upstream/dfg_integration_test"))
6870
# Pkg.add(PackageSpec(; name = "IncrementalInference", rev = "develop"))

test/testBlocks.jl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ TestAbstractPrior() = TestAbstractPrior(nothing)
3434

3535
struct PackedNothingDistribution <: AbstractPackedBelief
3636
_type::Symbol
37-
PackedNothingDistribution(; _type::String = "PackedNothingDistribution") = new(Symbol(_type))
37+
function PackedNothingDistribution(; _type::String = "PackedNothingDistribution")
38+
return new(Symbol(_type))
39+
end
3840
end
3941

4042
DFG.packDistribution(::Nothing) = PackedNothingDistribution()
@@ -1079,7 +1081,10 @@ function testGroup!(fg, v1, v2, f0, f1)
10791081
@test isPrior(fg, :af1) # if f1 is prior
10801082
@test lsfPriors(fg) == [:af1]
10811083

1082-
@test issetequal([TestFunctorInferenceType1{Nothing}, TestAbstractPrior{Nothing}], DFG.lsfTypes(fg))
1084+
@test issetequal(
1085+
[TestFunctorInferenceType1{Nothing}, TestAbstractPrior{Nothing}],
1086+
DFG.lsfTypes(fg),
1087+
)
10831088

10841089
facTypesDict = DFG.lsfTypesDict(fg)
10851090
@test issetequal(collect(keys(facTypesDict)), DFG.lsfTypes(fg))

0 commit comments

Comments
 (0)