Skip to content

Commit

Permalink
Remove true method for IsEuclideanRing
Browse files Browse the repository at this point in the history
It was added in commit 0f9c104 and
caused IsIntegralRing wrongly return 'true' e.g. for Integers mod 6,
as reported in gap-system#3975.
  • Loading branch information
Alexander Konovalov committed Apr 22, 2020
1 parent d811c34 commit 24b10d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/zmodnz.gd
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,6 @@ InstallTrueMethod( IsFinite,
IsZmodnZObjNonprimeCollection and IsDuplicateFree );


#############################################################################
##
#M IsEuclideanRing( <R> ) . . . . . . . . . . . . method for full ring Z/nZ
##
InstallTrueMethod(IsEuclideanRing, IsZmodnZObjNonprimeCollection and
IsWholeFamily and IsRing);

#############################################################################
##
#V Z_MOD_NZ
Expand Down
4 changes: 4 additions & 0 deletions tst/testinstall/ring.tst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ false
gap> IsIntegralRing( SmallRing(4,3) );
false

# Zero divisors not on the diagonal
gap> IsIntegralRing( Integers mod 6 );
false

# Integral rings
gap> IsIntegralRing( GF(5) );
true
Expand Down

0 comments on commit 24b10d2

Please sign in to comment.