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.
1 parent 6be03b7 commit a275ce6Copy full SHA for a275ce6
test/Rings-conformance-tests.jl
@@ -528,6 +528,12 @@ function test_Ring_interface(R::AbstractAlgebra.Ring; reps = 50)
528
@test B == b
529
end
530
531
+
532
+ @testset "Basic properties" begin
533
+ @test !is_irreducible(zero(R))
534
+ @test !is_irreducible(one(R))
535
+ end
536
537
538
539
return nothing
@@ -731,6 +737,17 @@ function test_Poly_interface(Rx::AbstractAlgebra.PolyRing; reps = 30)
731
737
@test is_monic(a) == isone(leading_coefficient(a))
732
738
733
739
740
741
742
+ try
743
+ flag = is_irreducible(x)
744
+ @test flag || is_trivial(R)
745
+ catch e
746
+ if !(e isa NotImplementedError)
747
+ rethrow(e)
748
749
750
734
751
735
752
736
753
0 commit comments