|
129 | 129 | # Existence
|
130 | 130 | @test exists(dfg, :a) == true
|
131 | 131 | @test exists(dfg, v1) == true
|
| 132 | + @show exists(dfg, :nope) |
132 | 133 | @test exists(dfg, :nope) == false
|
133 | 134 | # isFactor and isVariable
|
134 | 135 | @test isFactor(dfg, f1.label)
|
|
139 | 140 | @test !isFactor(dfg, :doesntexist)
|
140 | 141 |
|
141 | 142 | @test issetequal([:a, :b], listVariables(dfg))
|
| 143 | + @show listFactors(dfg) |
142 | 144 | @test issetequal([:abf1], listFactors(dfg))
|
143 | 145 |
|
144 | 146 | # @test @test_deprecated getVariableIds(dfg) == listVariables(dfg)
|
|
151 | 153 | @test !isPrior(dfg, :abf1) # f1 is not a prior
|
152 | 154 | @test lsfPriors(dfg) == []
|
153 | 155 | #FIXME don't know what it is supposed to do
|
154 |
| - @test_broken lsfTypes(dfg) |
| 156 | + @test 0 < length( lsfTypes(dfg) ) |
155 | 157 |
|
156 | 158 | @test ls(dfg, LinearRelative) == [:abf1]
|
157 | 159 | @test lsf(dfg, LinearRelative) == [:abf1]
|
|
161 | 163 | @test getVariableType(dfg, :a) isa Position{1}
|
162 | 164 |
|
163 | 165 | #TODO what is lsTypes supposed to return?
|
164 |
| - @test_broken lsTypes(dfg) |
| 166 | + @test 0 < length( lsTypes(dfg) ) |
165 | 167 |
|
166 | 168 | @test issetequal(ls(dfg, Position{1}), [:a, :b])
|
167 | 169 | @test issetequal(lsWho(dfg, :Position), [:a, :b])
|
|
0 commit comments