We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ismonic
1 parent a782adb commit 3195ea9Copy full SHA for 3195ea9
test/Poly.jl
@@ -458,6 +458,13 @@ end
458
@test_throws InexactError convert(Polynomial{Int}, y)
459
end
460
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
468
469
470
@testset "Pade" begin
0 commit comments