|
59 | 59 |
|
60 | 60 | iobuf = IOBuffer()
|
61 | 61 | # for now just test the interface and a bit of output
|
62 |
| - @test printVariable(var1) == nothing |
63 |
| - @test printFactor(fac1) == nothing |
| 62 | + @test printVariable(var1) === nothing |
| 63 | + @test printFactor(fac1) === nothing |
64 | 64 |
|
65 |
| - @test printVariable(iobuf, var1, skipfields=[:timestamp, :solver, :ppe, :nstime]) == nothing |
| 65 | + @test printVariable(iobuf, var1, skipfields=[:timestamp, :solver, :ppe, :nstime]) === nothing |
66 | 66 | @test String(take!(iobuf)) == "DFGVariable{TestSofttype1}\nlabel:\n:a\ntags:\nSet([:VARIABLE, :POSE])\nsmallData:\nDict{Symbol,Union{Bool, Float64, Int64, Array{Bool,1}, Array{Float64,1}, Array{Int64,1}, Array{String,1}, String}}(:small=>\"data\")\ndataDict:\nDict{Symbol,AbstractDataEntry}()\nsolvable:\n0\n"
|
67 | 67 |
|
68 |
| - @test printVariable(iobuf, var1, short=true) == nothing |
69 |
| - @test String(take!(iobuf)) == "DFGVariable{TestSofttype1}\nlabel: a\ntags: Set([:VARIABLE, :POSE])\nsize marginal samples: (1, 1)\nkde bandwidths: [0.0]\nNo PPEs\n" |
| 68 | + @test printVariable(iobuf, var1, short=true) === nothing |
| 69 | + varstr = String(take!(iobuf)) |
| 70 | + @test occursin(r"DFGVariable", varstr) |
| 71 | + @test occursin(r"timestamp", varstr) |
| 72 | + @test occursin(r"label", varstr) |
| 73 | + @test occursin(r"bandwidths", varstr) |
| 74 | + # == "DFGVariable{TestSofttype1}\nlabel: a\ntags: Set([:VARIABLE, :POSE])\nsize marginal samples: (1, 1)\nkde bandwidths: [0.0]\nNo PPEs\n" |
70 | 75 |
|
71 | 76 |
|
72 |
| - @test printFactor(iobuf, fac1, skipfields=[:timestamp, :solver, :nstime]) == nothing |
| 77 | + @test printFactor(iobuf, fac1, skipfields=[:timestamp, :solver, :nstime]) === nothing |
73 | 78 | @test occursin(r"DFGFactor.*\nlabel:\n:abf1", String(take!(iobuf)))
|
74 | 79 |
|
75 | 80 | String(take!(iobuf)) == "DFGFactor{TestCCW{TestFunctorInferenceType1}}\nlabel:\n:abf1\ntags:\nSet([:tag1, :tag2])\nsolvable:\n0\nsolvable:\n1\n_variableOrderSymbols:\n[:a, :b]\n"
|
76 | 81 |
|
77 |
| - @test printFactor(iobuf, fac1, short=true) == nothing |
| 82 | + @test printFactor(iobuf, fac1, short=true) === nothing |
78 | 83 | @show teststr = String(take!(iobuf))
|
79 | 84 | @test occursin(r"DFGFactor", teststr)
|
80 | 85 | @test occursin(r"label", teststr)
|
|
84 | 89 |
|
85 | 90 | # s = String(take!(iobuf))
|
86 | 91 |
|
87 |
| - @test show(var1) == nothing |
88 |
| - @test show(fac1) == nothing |
| 92 | + @test show(var1) === nothing |
| 93 | + @test show(fac1) === nothing |
89 | 94 |
|
90 |
| - @test show(iobuf, MIME("text/plain"), var1) == nothing |
| 95 | + @test show(iobuf, MIME("text/plain"), var1) === nothing |
91 | 96 | isapprox(length(take!(iobuf)), 452, atol=10)
|
92 |
| - @test show(iobuf, MIME("text/plain"), fac1) == nothing |
| 97 | + @test show(iobuf, MIME("text/plain"), fac1) === nothing |
93 | 98 | isapprox(length(take!(iobuf)), 301, atol=10)
|
94 | 99 |
|
95 |
| - @test printVariable(fg1, :a) == nothing |
96 |
| - @test printFactor(fg1, :abf1) == nothing |
| 100 | + @test printVariable(fg1, :a) === nothing |
| 101 | + @test printFactor(fg1, :abf1) === nothing |
97 | 102 |
|
98 |
| - @test printNode(fg1, :a) == nothing |
99 |
| - @test printNode(fg1, :abf1) == nothing |
| 103 | + @test printNode(fg1, :a) === nothing |
| 104 | + @test printNode(fg1, :abf1) === nothing |
100 | 105 |
|
101 | 106 | show(stdout, MIME("application/prs.juno.inline"), var1) == var1
|
102 | 107 | show(stdout, MIME("application/prs.juno.inline"), fac1) == fac1
|
|
0 commit comments