Skip to content

Commit 3195ea9

Browse files
committed
Add tests for ismonic
1 parent a782adb commit 3195ea9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/Poly.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,13 @@ end
458458
@test_throws InexactError convert(Polynomial{Int}, y)
459459
end
460460

461+
@testset "`ismonic`" begin
462+
@test !ismonic(Polynomial([1, 2, 3, 4]))
463+
@test ismonic(Polynomial([2, 3, 4, 1 // 1]))
464+
@test ismonic(Polynomial([2, 3, 4, 1.0]))
465+
@test !ismonic(zero(Polynomial))
466+
@test ismonic(one(Polynomial))
467+
end
461468

462469

463470
@testset "Pade" begin

0 commit comments

Comments
 (0)