Skip to content

Commit

Permalink
delete some duplicate methods in test/utils.jl (#283)
Browse files Browse the repository at this point in the history
This was causing warnings each time before the tests were ran.
  • Loading branch information
nsajko authored Nov 30, 2023
1 parent fcb1b29 commit bfa750b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions test/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ end
struct CustomPoly{T,P<:AbstractPolynomial{T}} <: AbstractPolynomialLike{T}
p::P
end
CustomPoly(p::AbstractPolynomial{T}) where {T} = CustomPoly{T,typeof(p)}(p)
function MultivariatePolynomials.term_type(::Type{CustomPoly{T,P}}) where {T,P}
return MultivariatePolynomials.term_type(P)
end
Expand All @@ -39,7 +38,6 @@ Base.copy(p::CustomPoly) = CustomPoly(copy(p.p))
struct CustomTerms{T,P<:AbstractPolynomial{T}} <: AbstractPolynomialLike{T}
p::P
end
CustomTerms(p::AbstractPolynomial{T}) where {T} = CustomTerms{T,typeof(p)}(p)
function MultivariatePolynomials.term_type(::Type{CustomTerms{T,P}}) where {T,P}
return MultivariatePolynomials.term_type(P)
end
Expand All @@ -50,9 +48,6 @@ function MultivariatePolynomials.monomial_type(
) where {T,P}
return monomial_type(P)
end
function MultivariatePolynomials.constant_monomial(p::CustomPoly)
return constant_monomial(p.p)
end
Base.copy(p::CustomTerms) = CustomTerms(copy(p.p))

function _typetests(x, ::Type{T}) where {T}
Expand Down

0 comments on commit bfa750b

Please sign in to comment.