Skip to content

Commit 9679c4e

Browse files
committed
Fix failure, add test
1 parent c599817 commit 9679c4e

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ RecipesBase = "3cdcf5f2-1ef4-517c-9805-6587b60abb01"
1212

1313
[compat]
1414
Intervals = "0.5, 1.0, 1.3"
15-
RecipesBase = "0.7, 0.8, 1"
1615
OffsetArrays = "1"
16+
RecipesBase = "0.7, 0.8, 1"
1717
julia = "1"
1818

1919
[extras]

src/show.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ function printcoefficient(io::IO, pj::Complex{T}, j, mimetype) where {T}
214214

215215
if hasreal && hasimag
216216
print(io,"(",a)
217-
print(printsign(io,b,false,mimetype),imagsymbol,")")
217+
print(io,printsign(io,b,false,mimetype),imagsymbol,")")
218218
elseif hasreal
219219
(j==0 || showone(T) || a != one(T)) && printcoefficient(io, a, j, mimetype)
220220
elseif hasimag

test/StandardBasis.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -805,6 +805,7 @@ end
805805
@test printpoly_to_string(P([1,2,3], "y"), descending_powers = true) == "3*y^2 + 2*y + 1"
806806
@test printpoly_to_string(P([2, 3, 1], :z), descending_powers = true, offset = -2) == "1 + 3*z^-1 + 2*z^-2"
807807
@test printpoly_to_string(P([-1, 0, 1], :z), offset = -1, descending_powers = true) == "z - z^-1"
808+
@test printpoly_to_string(P([complex(1,1),complex(1,-1)]),MIME"text/latex"()) == "(1 + 1i) + (1 - 1i)\\cdot x"
808809
end
809810
end
810811

0 commit comments

Comments
 (0)