File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -403,5 +403,5 @@ function Base.round(p::AbstractPolynomialLike; args...)
403
403
polynomial! (round .(terms (p); args... ), SortedState ())
404
404
end
405
405
406
- Base. ndims (:: Type{<:AbstractPolynomialLike} ) = 0
406
+ Base. ndims (:: Union{ Type{<:AbstractPolynomialLike}, AbstractPolynomialLike} ) = 0
407
407
Base. broadcastable (p:: AbstractPolynomialLike ) = Ref (p)
Original file line number Diff line number Diff line change 3
3
@test sprint (show, (x* y^ 2 + x + 1 + y)) == " xy² + x + y + 1"
4
4
@test sprint (show, (x + 1 + y) / x^ 2 ) == " (x + y + 1) / (x²)"
5
5
@test sprint (show, (x - y - x + y) / (x^ 2 - x)) == " (0) / (x² - x)"
6
- @test sprint (show, CustomPoly (1 + x)) == " CustomPoly{$Int ,$(typeof (1 + x)) }(x + 1)"
6
+ cp = CustomPoly (1 + x)
7
+ @test sprint (show, cp) == " $(typeof (cp)) (x + 1)"
7
8
# Test taken from TypedPolynomials
8
9
@test sprint (show, x) == " x"
9
10
@test sprint (show, x^ 0 ) == " 1"
You can’t perform that action at this time.
0 commit comments