Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FreeSemilattice constructor #995

Merged
merged 16 commits into from
Mar 15, 2024
Merged
Prev Previous commit
Next Next commit
Change tst to reflect the new error msg
  • Loading branch information
Jun2M committed Mar 12, 2024
commit 7977c3b3a31b9cc292f43287f7461a402114dd35
1 change: 1 addition & 0 deletions gap/semigroups/semicons.gi
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@ function(arg...)
S := FreeSemilatticeCons(filter, n);

SetSize(S, 2 ^ n - 1);
SetIsSemilattice(S, true);

return S;
end);
Expand Down
3 changes: 1 addition & 2 deletions tst/standard/semigroups/semicons.tst
Original file line number Diff line number Diff line change
Expand Up @@ -505,8 +505,7 @@ gap> S := FreeSemilattice(IsPartialPermSemigroup, 0);
Error, the arguments must be a positive integer or a filter and a positive int\
eger
gap> S := FreeSemilattice(IsPermGroup, 1, 1);
Error, the arguments must be a positive integer or a filter and a positive int\
eger
Error, expected 2 arguments found 3
gap> S := FreeSemilattice(IsPartialPermSemigroup, true);
Error, the arguments must be a positive integer or a filter and a positive int\
eger
Expand Down