Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delete some duplicate methods in test/utils.jl #283

Merged
merged 1 commit into from
Nov 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading