Skip to content

Commit 757c416

Browse files
committed
Rename isintegerpoly to isintegral
as mentioned in #259 (comment)
1 parent afef24c commit 757c416

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/common.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export fromroots,
1616
integrate,
1717
derivative,
1818
variable,
19-
isintegerpoly
19+
isintegral
2020

2121
"""
2222
fromroots(::AbstractVector{<:Number}; var=:x)
@@ -324,11 +324,11 @@ See also: [`isreal`](@ref)
324324
Base.real(p::AbstractPolynomial) = as_(real, p)
325325

326326
"""
327-
isintegerpoly(p::AbstractPolynomial)
327+
isintegral(p::AbstractPolynomial)
328328
329329
Determine whether a polynomial is an integer polynomial, i.e., having only integers as coefficients.
330330
"""
331-
isintegerpoly(p::AbstractPolynomial) = is_(isinteger, p)
331+
isintegral(p::AbstractPolynomial) = is_(isinteger, p)
332332

333333
"""
334334
coeffs(::AbstractPolynomial)

test/Poly.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -432,11 +432,11 @@ fit(Poly, xx,yy,2)
432432
@test real(y) == real(x)
433433
end
434434

435-
@testset "`isintegerpoly`" begin
435+
@testset "`isintegral`" begin
436436
x = Polynomial([1 // 1, Int8(2) + 0im, 3.0, Int16(4) + 0im])
437437
y = Polynomial([1 // 2, Int8(2) + 0im, 3.0, Int16(4) + 0im])
438-
@test isintegerpoly(x) === true
439-
@test isintegerpoly(y) === false
438+
@test isintegral(x) === true
439+
@test isintegral(y) === false
440440
@test convert(Polynomial{Int}, x) == Polynomial([1, 2, 3, 4])
441441
@test_throws InexactError convert(Polynomial{Int}, y)
442442
end

0 commit comments

Comments
 (0)