-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added second technical test to increase code coverage
- Loading branch information
Showing
3 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
gap> START_TEST("Forms: test_tech2.tst"); | ||
gap> go := GO(5, 5); | ||
GO(0,5,5) | ||
gap> x := | ||
> [ [ Z(5)^0, Z(5)^3, 0*Z(5), Z(5)^3, Z(5)^3 ], | ||
> [ Z(5)^2, Z(5)^3, 0*Z(5), Z(5)^2, Z(5) ], | ||
> [ Z(5)^2, Z(5)^2, Z(5)^0, Z(5), Z(5)^3 ], | ||
> [ Z(5)^0, Z(5)^3, Z(5), Z(5)^0, Z(5)^3 ], | ||
> [ Z(5)^3, 0*Z(5), Z(5)^0, 0*Z(5), Z(5) ] | ||
> ];; | ||
gap> grp := go^x; | ||
<matrix group of size 18720000 with 2 generators> | ||
gap> forms := PreservedSesquilinearForms( grp );; | ||
gap> ScalarsOfPreservedForm(grp,forms[1]); | ||
[ Z(5)^0, Z(5)^0 ] | ||
gap> ScalarsOfPreservedForm(go,forms[1]); | ||
false | ||
gap> quad := QuadraticFormByBilinearForm(forms[1]); | ||
< quadratic form > | ||
gap> ScalarsOfPreservedForm(grp,quad); | ||
[ Z(5)^0, Z(5)^0 ] | ||
gap> ScalarsOfPreservedForm(go,quad); | ||
false | ||
gap> STOP_TEST("test_tech2.tst", 10000 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#technical test of ScalarsOfPreservedForm | ||
go := GO(5, 5); | ||
x := | ||
[ [ Z(5)^0, Z(5)^3, 0*Z(5), Z(5)^3, Z(5)^3 ], | ||
[ Z(5)^2, Z(5)^3, 0*Z(5), Z(5)^2, Z(5) ], | ||
[ Z(5)^2, Z(5)^2, Z(5)^0, Z(5), Z(5)^3 ], | ||
[ Z(5)^0, Z(5)^3, Z(5), Z(5)^0, Z(5)^3 ], | ||
[ Z(5)^3, 0*Z(5), Z(5)^0, 0*Z(5), Z(5) ] | ||
];; | ||
grp := go^x; | ||
forms := PreservedSesquilinearForms( grp );; | ||
ScalarsOfPreservedForm(grp,forms[1]); | ||
ScalarsOfPreservedForm(go,forms[1]); | ||
quad := QuadraticFormByBilinearForm(forms[1]); | ||
ScalarsOfPreservedForm(grp,quad); | ||
ScalarsOfPreservedForm(go,quad); | ||
quit; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters