1515# - test_MatAlgebra_interface(R)
1616
1717
18- function ConformanceTests . test_NCRing_interface (R:: AbstractAlgebra.NCRing ; reps = 50 )
18+ function test_NCRing_interface (R:: AbstractAlgebra.NCRing ; reps = 50 )
1919
2020 T = elem_type (R)
2121
@@ -200,17 +200,17 @@ function ConformanceTests.test_NCRing_interface(R::AbstractAlgebra.NCRing; reps
200200 b = generate_element (R):: T
201201 c = generate_element (R):: T
202202
203- ConformanceTests . test_mutating_op_like_zero (zero, zero!, a)
204- ConformanceTests . test_mutating_op_like_zero (one, one!, a)
203+ test_mutating_op_like_zero (zero, zero!, a)
204+ test_mutating_op_like_zero (one, one!, a)
205205
206- ConformanceTests . test_mutating_op_like_neg (- , neg!, a)
206+ test_mutating_op_like_neg (- , neg!, a)
207207
208- ConformanceTests . test_mutating_op_like_add (+ , add!, a, b)
209- ConformanceTests . test_mutating_op_like_add (- , sub!, a, b)
210- ConformanceTests . test_mutating_op_like_add (* , mul!, a, b)
208+ test_mutating_op_like_add (+ , add!, a, b)
209+ test_mutating_op_like_add (- , sub!, a, b)
210+ test_mutating_op_like_add (* , mul!, a, b)
211211
212- ConformanceTests . test_mutating_op_like_addmul ((a, b, c) -> a + b* c, addmul!, a, b, c)
213- ConformanceTests . test_mutating_op_like_addmul ((a, b, c) -> a - b* c, submul!, a, b, c)
212+ test_mutating_op_like_addmul ((a, b, c) -> a + b* c, addmul!, a, b, c)
213+ test_mutating_op_like_addmul ((a, b, c) -> a - b* c, submul!, a, b, c)
214214 end
215215 end
216216 end
@@ -219,20 +219,20 @@ function ConformanceTests.test_NCRing_interface(R::AbstractAlgebra.NCRing; reps
219219end
220220
221221
222- function ConformanceTests . test_Ring_interface (R:: AbstractAlgebra.Ring ; reps = 50 )
222+ function test_Ring_interface (R:: AbstractAlgebra.Ring ; reps = 50 )
223223
224224 T = elem_type (R)
225225
226226 @testset " Ring interface for $(R) of type $(typeof (R)) " begin
227227
228228 @test T <: RingElement
229229
230- ConformanceTests . test_NCRing_interface (R; reps = reps)
230+ test_NCRing_interface (R; reps = reps)
231231
232232 @testset " Basic functionality for commutative rings only" begin
233233 @test isone (AbstractAlgebra. inv (one (R)))
234- ConformanceTests . test_mutating_op_like_neg (AbstractAlgebra. inv, inv!, one (R))
235- ConformanceTests . test_mutating_op_like_neg (AbstractAlgebra. inv, inv!, - one (R))
234+ test_mutating_op_like_neg (AbstractAlgebra. inv, inv!, one (R))
235+ test_mutating_op_like_neg (AbstractAlgebra. inv, inv!, - one (R))
236236 for i in 1 : reps
237237 a = generate_element (R):: T
238238 b = generate_element (R):: T
@@ -247,7 +247,7 @@ function ConformanceTests.test_Ring_interface(R::AbstractAlgebra.Ring; reps = 50
247247 if T isa RingElem
248248 @test iszero (b) || equality ((b* a) / b, a)
249249 end
250- iszero (b) || ConformanceTests . test_mutating_op_like_add (divexact, divexact!, b* a, b)
250+ iszero (b) || test_mutating_op_like_add (divexact, divexact!, b* a, b)
251251 else
252252 try
253253 t = divexact (b* a, b)
@@ -282,13 +282,13 @@ function ConformanceTests.test_Ring_interface(R::AbstractAlgebra.Ring; reps = 50
282282 return nothing
283283end
284284
285- function ConformanceTests . test_Field_interface (R:: AbstractAlgebra.Field ; reps = 50 )
285+ function test_Field_interface (R:: AbstractAlgebra.Field ; reps = 50 )
286286
287287 T = elem_type (R)
288288
289289 @testset " Field interface for $(R) of type $(typeof (R)) " begin
290290
291- ConformanceTests . test_Ring_interface (R, reps = reps)
291+ test_Ring_interface (R, reps = reps)
292292
293293 @test iszero (R (characteristic (R)))
294294 @test iszero (characteristic (R) * one (R))
@@ -301,7 +301,7 @@ function ConformanceTests.test_Field_interface(R::AbstractAlgebra.Field; reps =
301301 if ! is_zero (a)
302302 @test is_one (a * inv (a))
303303 @test is_one (inv (a) * a)
304- ConformanceTests . test_mutating_op_like_neg (inv, inv!, a)
304+ test_mutating_op_like_neg (inv, inv!, a)
305305 end
306306 @test A == a
307307 end
@@ -310,7 +310,7 @@ function ConformanceTests.test_Field_interface(R::AbstractAlgebra.Field; reps =
310310 return nothing
311311end
312312
313- function ConformanceTests . test_EuclideanRing_interface (R:: AbstractAlgebra.Ring ; reps = 20 )
313+ function test_EuclideanRing_interface (R:: AbstractAlgebra.Ring ; reps = 20 )
314314
315315 T = elem_type (R)
316316
@@ -386,10 +386,10 @@ function ConformanceTests.test_EuclideanRing_interface(R::AbstractAlgebra.Ring;
386386 @test d == s* f + t* g
387387 @test gcdinv (f, g) == (d, s)
388388
389- ConformanceTests . test_mutating_op_like_add (AbstractAlgebra. div, div!, f, m)
390- ConformanceTests . test_mutating_op_like_add (mod, mod!, f, m)
391- ConformanceTests . test_mutating_op_like_add (gcd, gcd!, f, m)
392- ConformanceTests . test_mutating_op_like_add (lcm, lcm!, f, m)
389+ test_mutating_op_like_add (AbstractAlgebra. div, div!, f, m)
390+ test_mutating_op_like_add (mod, mod!, f, m)
391+ test_mutating_op_like_add (gcd, gcd!, f, m)
392+ test_mutating_op_like_add (lcm, lcm!, f, m)
393393 end
394394
395395 end
@@ -398,13 +398,13 @@ function ConformanceTests.test_EuclideanRing_interface(R::AbstractAlgebra.Ring;
398398end
399399
400400
401- function ConformanceTests . test_Poly_interface (Rx:: AbstractAlgebra.PolyRing ; reps = 30 )
401+ function test_Poly_interface (Rx:: AbstractAlgebra.PolyRing ; reps = 30 )
402402
403403 T = elem_type (Rx)
404404
405405 @testset " Poly interface for $(Rx) of type $(typeof (Rx)) " begin
406406
407- ConformanceTests . test_Ring_interface (Rx; reps = reps)
407+ test_Ring_interface (Rx; reps = reps)
408408
409409 x = gen (Rx)
410410 R = base_ring (Rx)
@@ -430,7 +430,7 @@ function ConformanceTests.test_Poly_interface(Rx::AbstractAlgebra.PolyRing; reps
430430 end
431431
432432 if R isa AbstractAlgebra. Field
433- ConformanceTests . test_EuclideanRing_interface (Rx, reps = 2 + fld (reps, 2 ))
433+ test_EuclideanRing_interface (Rx, reps = 2 + fld (reps, 2 ))
434434 @testset " Half-GCD" begin
435435 for i in 1 : reps
436436 a = generate_element (Rx)
@@ -480,7 +480,7 @@ function ConformanceTests.test_Poly_interface(Rx::AbstractAlgebra.PolyRing; reps
480480end
481481
482482
483- function ConformanceTests . test_MPoly_interface (Rxy:: AbstractAlgebra.MPolyRing ; reps = 30 )
483+ function test_MPoly_interface (Rxy:: AbstractAlgebra.MPolyRing ; reps = 30 )
484484
485485 # for simplicity, these tests for now assume exactly two generators
486486 @assert ngens (Rxy) == 2
@@ -489,7 +489,7 @@ function ConformanceTests.test_MPoly_interface(Rxy::AbstractAlgebra.MPolyRing; r
489489
490490 @testset " MPoly interface for $(Rxy) of type $(typeof (Rxy)) " begin
491491
492- ConformanceTests . test_Ring_interface (Rxy; reps = reps)
492+ test_Ring_interface (Rxy; reps = reps)
493493
494494 @testset " Basic functionality" begin
495495 @test symbols (Rxy) isa Vector{Symbol}
@@ -614,7 +614,7 @@ function ConformanceTests.test_MPoly_interface(Rxy::AbstractAlgebra.MPolyRing; r
614614end
615615
616616
617- function ConformanceTests . test_MatSpace_interface (S:: MatSpace ; reps = 20 )
617+ function test_MatSpace_interface (S:: MatSpace ; reps = 20 )
618618
619619 ST = elem_type (S)
620620 R = base_ring (S)
@@ -714,7 +714,7 @@ function ConformanceTests.test_MatSpace_interface(S::MatSpace; reps = 20)
714714 return nothing
715715end
716716
717- function ConformanceTests . test_MatAlgebra_interface (S:: MatRing ; reps = 20 )
717+ function test_MatAlgebra_interface (S:: MatRing ; reps = 20 )
718718
719719 ST = elem_type (S)
720720 R = base_ring (S)
@@ -724,7 +724,7 @@ function ConformanceTests.test_MatAlgebra_interface(S::MatRing; reps = 20)
724724
725725 @testset " MatRing interface for $(S) of type $(typeof (S)) " begin
726726
727- ConformanceTests . test_NCRing_interface (S, reps = reps)
727+ test_NCRing_interface (S, reps = reps)
728728
729729 @testset " Constructors" begin
730730 for k in 1 : reps
@@ -766,19 +766,19 @@ function ConformanceTests.test_MatAlgebra_interface(S::MatRing; reps = 20)
766766 return nothing
767767end
768768
769- function ConformanceTests . test_Ring_interface_recursive (R:: AbstractAlgebra.Ring ; reps = 50 )
770- ConformanceTests . test_Ring_interface (R; reps = reps)
769+ function test_Ring_interface_recursive (R:: AbstractAlgebra.Ring ; reps = 50 )
770+ test_Ring_interface (R; reps = reps)
771771 Rx, _ = polynomial_ring (R, :x )
772- ConformanceTests . test_Poly_interface (Rx, reps = 2 + fld (reps, 2 ))
772+ test_Poly_interface (Rx, reps = 2 + fld (reps, 2 ))
773773 Rxy, _ = polynomial_ring (R, [:x , :y ])
774- ConformanceTests . test_MPoly_interface (Rxy, reps = 2 + fld (reps, 2 ))
774+ test_MPoly_interface (Rxy, reps = 2 + fld (reps, 2 ))
775775 S = matrix_ring (R, rand (0 : 3 ))
776- ConformanceTests . test_MatAlgebra_interface (S, reps = 2 + fld (reps, 2 ))
776+ test_MatAlgebra_interface (S, reps = 2 + fld (reps, 2 ))
777777 S = matrix_space (R, rand (0 : 3 ), rand (0 : 3 ))
778- ConformanceTests . test_MatSpace_interface (S, reps = 2 + fld (reps, 2 ))
778+ test_MatSpace_interface (S, reps = 2 + fld (reps, 2 ))
779779end
780780
781- function ConformanceTests . test_Field_interface_recursive (R:: AbstractAlgebra.Field ; reps = 50 )
782- ConformanceTests . test_Ring_interface_recursive (R, reps = reps)
783- ConformanceTests . test_Field_interface (R, reps = reps)
781+ function test_Field_interface_recursive (R:: AbstractAlgebra.Field ; reps = 50 )
782+ test_Ring_interface_recursive (R, reps = reps)
783+ test_Field_interface (R, reps = reps)
784784end
0 commit comments