Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Nov 26, 2023
1 parent 58058f8 commit 22bd2a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_print.jl
Original file line number Diff line number Diff line change
Expand Up @@ -977,13 +977,13 @@ function test_truncated_printing()
"x_{30} + [[\\ldots\\text{940 terms omitted}\\ldots]] + x_{971}",
function_string(MIME("text/latex"), y),
)
ret = _TERM_LIMIT_FOR_PRINTING[]
_TERM_LIMIT_FOR_PRINTING[] = 3
ret = JuMP._TERM_LIMIT_FOR_PRINTING[]
JuMP._TERM_LIMIT_FOR_PRINTING[] = 3
@test function_string(MIME("text/plain"), y) ==
"x[1] + x[2] + [[...997 terms omitted...]] + x[1000]"
@test function_string(MIME("text/latex"), y) ==
"x_{1} + x_{2} + [[\\ldots\\text{997 terms omitted}\\ldots]] + x_{1000}"
_TERM_LIMIT_FOR_PRINTING[] = ret
JuMP._TERM_LIMIT_FOR_PRINTING[] = ret
return
end

Expand Down

0 comments on commit 22bd2a4

Please sign in to comment.