Skip to content

Commit

Permalink
mat8bit: add tests for higher code coverage
Browse files Browse the repository at this point in the history
Everything in mat8bit.gi is covered except RepresentationsOfMatrix which
doesn't seem to be used anywhere, and also doesn't seem like it should
really be in mat8bit.gi at all. Also removed some unreachable code.
  • Loading branch information
james-d-mitchell authored and fingolfin committed Feb 9, 2023
1 parent 1df0e2c commit 076b3e9
Show file tree
Hide file tree
Showing 2 changed files with 420 additions and 5 deletions.
6 changes: 2 additions & 4 deletions lib/mat8bit.gi
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,8 @@ InstallGlobalFunction(ConvertToMatrixRep,

LeastCommonPower := function(qs)
local p, d, x, i;
if Length(qs) = 0 then
return fail;
fi;
Assert(1, Length(qs) > 0);

x := Z(qs[1]);
p := Characteristic(x);
d := DegreeFFE(x);
Expand All @@ -270,7 +269,6 @@ InstallGlobalFunction(ConvertToMatrixRep,
return p^d;
end;


qs := [];

m := arg[1];
Expand Down
Loading

0 comments on commit 076b3e9

Please sign in to comment.