-
Notifications
You must be signed in to change notification settings - Fork 161
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
Fix SubgroupsSolvableGroup
to honor retnorm
option even for trivial groups
#4855
Conversation
Hi! Thanks for the PR. Would you consider writing some tests for this function? It looks to me like there are currently no tests at all :( Obviously within reason the more tests the better! But it's also fine to just put in some basic tests, and also some tests which cover the case you are changing. If you want some help writing tests please do ask, but as a quick suggestion, I'd look at some files in |
Hi @ChrisJefferson !
Fine, I will try to prepare some tests for this function during the next days with some examples, trivial cases, and different options. I remember some years ago I discovered a problem when applying this function to trivial groups, but I was not aware that with the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I never considered the case of the trivial group in these cases, this should fix it.
The function `SubgroupsSolvableGroup` with a trivial group as argument did not return the list of normalizers when called with the option `retnorm`. Co-authored-by: Max Horn <max@quendi.de>
I tweaked the formatting and commit message and added a test case. |
SubgroupsSolvableGroup
with retnorm
SubgroupsSolvableGroup
with retnormSubgroupsSolvableGroup
to honor retnorm
option even for trivial groups
The function
SubgroupsSolvableGroup
with a trivial group with an argument does not return the list of normalizers when called with the optionretnorm
. I suggest considering this flag for trivial groups. I propose moving first the parsing of theretnorm
flag and immediately checking the trivial case. Please check I have not destroyed the rest of the function!Text for release notes
See title (or leave it up to you)