diff --git a/lib/field.gi b/lib/field.gi index 5b255485a3..1f619013de 100644 --- a/lib/field.gi +++ b/lib/field.gi @@ -235,7 +235,23 @@ InstallMethod( ClosureDivisionRing, ############################################################################# ## -#M ViewString( ) . . . . . . . . . . . . . . . . . . . . . . view a field +#M ViewObj( ) . . . . . . . . . . . . . . . . . . . . . . view a field +## +InstallMethod( ViewObj, + "for a field", + [ IsField ], + function( F ) + if HasSize( F ) and IsInt( Size( F ) ) then + Print( "" ); + else + Print( "" ); + fi; + end ); + + +############################################################################# +## +#M ViewString( ) . . . . . . . . . . . . . . . . . . . . . view a field ## InstallMethod( ViewString, "for a field", diff --git a/tst/testbugfix/2012-08-14-t00271.tst b/tst/testbugfix/2012-08-14-t00271.tst index 5094b4869a..e933760d6e 100644 --- a/tst/testbugfix/2012-08-14-t00271.tst +++ b/tst/testbugfix/2012-08-14-t00271.tst @@ -1,6 +1,7 @@ # 2012/08/14 (AK) gap> R:=PolynomialRing(GF(5),"mu");; gap> mu:=Indeterminate(GF(5));; -gap> T:=AlgebraicExtension(GF(5),mu^5-mu+1);; +gap> T:=AlgebraicExtension(GF(5),mu^5-mu+1); + gap> A:=PolynomialRing(T,"x"); [x] diff --git a/tst/testbugfix/2017-07-06-DoImmutableMatrix.tst b/tst/testbugfix/2017-07-06-DoImmutableMatrix.tst index fcea464a4e..c938959383 100644 --- a/tst/testbugfix/2017-07-06-DoImmutableMatrix.tst +++ b/tst/testbugfix/2017-07-06-DoImmutableMatrix.tst @@ -1,6 +1,6 @@ # handling of finite fields of size q <= 256 but not GF(q) gap> f1 := AlgebraicExtension(GF(3), CyclotomicPolynomial(GF(3), 5)); - + gap> a := RootOfDefiningPolynomial(f1); a gap> mat := [[a]];