File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -277,6 +277,12 @@ function ConformanceTests.test_Ring_interface(R::AbstractAlgebra.Ring; reps = 50
277
277
@test B == b
278
278
end
279
279
end
280
+
281
+ @testset " Basic properties" begin
282
+ @test ! is_irreducible (zero (R))
283
+ @test ! is_irreducible (one (R))
284
+ end
285
+
280
286
end
281
287
282
288
return nothing
@@ -474,6 +480,17 @@ function ConformanceTests.test_Poly_interface(Rx::AbstractAlgebra.PolyRing; reps
474
480
@test is_monic (a) == isone (leading_coefficient (a))
475
481
end
476
482
end
483
+
484
+ @testset " Basic properties" begin
485
+ try
486
+ flag = is_irreducible (x)
487
+ @test flag || is_trivial (R)
488
+ catch e
489
+ if ! (e isa NotImplementedError)
490
+ rethrow (e)
491
+ end
492
+ end
493
+ end
477
494
end
478
495
479
496
return nothing
You can’t perform that action at this time.
0 commit comments