Skip to content

Commit e4894e3

Browse files
committed
Fix printing tests
1 parent c3da84e commit e4894e3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/JuMP_wrapper.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ function test_container()
4242
@test con_it_expr isa ExprGenerator
4343
con_expr = con_it_expr.expr.expr
4444
@test sprint(show, con_ref) ==
45-
"ParametrizedArray(((x + getindex(IteratorIndex(1), 2.0)) - getindex(IteratorIndex(1), 3.0)) - 0.0, Iterator{Tuple{Symbol, Int64, Real}}(Tuple{Symbol, Int64, Real}[(:a, -1, π), (:b, 1, 0.0)]) ∈ MathOptInterface.Nonnegatives(2), IteratorValues[iterator([:a, :b])])"
45+
"$ParametrizedArray(((x + getindex($IteratorIndex(1), 2.0)) - getindex($IteratorIndex(1), 3.0)) - 0.0, Iterator{Tuple{Symbol, Int64, Real}}(Tuple{Symbol, Int64, Real}[(:a, -1, π), (:b, 1, 0.0)]) ∈ MathOptInterface.Nonnegatives(2), IteratorValues[iterator([:a, :b])])"
4646
@test sprint(show, MIME"text/latex"(), con_ref) ==
47-
"ParametrizedArray(((x + getindex(IteratorIndex(1), 2.0)) - getindex(IteratorIndex(1), 3.0)) - 0.0, Iterator{Tuple{Symbol, Int64, Real}}(Tuple{Symbol, Int64, Real}[(:a, -1, π), (:b, 1, 0.0)]) ∈ MathOptInterface.Nonnegatives(2), IteratorValues[iterator([:a, :b])])"
47+
"$ParametrizedArray(((x + getindex($IteratorIndex(1), 2.0)) - getindex($IteratorIndex(1), 3.0)) - 0.0, Iterator{Tuple{Symbol, Int64, Real}}(Tuple{Symbol, Int64, Real}[(:a, -1, π), (:b, 1, 0.0)]) ∈ MathOptInterface.Nonnegatives(2), IteratorValues[iterator([:a, :b])])"
4848
@test sprint(show, con_expr) ==
49-
"((x + getindex(IteratorIndex(1), 2.0)) - getindex(IteratorIndex(1), 3.0)) - 0.0"
49+
"((x + getindex($IteratorIndex(1), 2.0)) - getindex($IteratorIndex(1), 3.0)) - 0.0"
5050
@test sprint(show, MIME"text/latex"(), con_expr) ==
51-
"\$ {\\left({\\left({x} + {\\textsf{getindex}\\left({IteratorIndex(1)}, {2.0}\\right)}\\right)} - {\\textsf{getindex}\\left({IteratorIndex(1)}, {3.0}\\right)}\\right)} - {0.0} \$"
51+
"\$ {\\left({\\left({x} + {\\textsf{getindex}\\left({$IteratorIndex(1)}, {2.0}\\right)}\\right)} - {\\textsf{getindex}\\left({$IteratorIndex(1)}, {3.0}\\right)}\\right)} - {0.0} \$"
5252

5353
i = GenOpt.iterator(keys)
5454
expr = x + d1[i] - d2[i]

0 commit comments

Comments
 (0)