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

Accommodate correctly pluralized ViewStrings in GAP #5

Merged
merged 1 commit into from
Oct 24, 2020
Merged

Accommodate correctly pluralized ViewStrings in GAP #5

merged 1 commit into from
Oct 24, 2020

Conversation

wilfwilson
Copy link
Member

In a future version of GAP, some nouns will be correctly pluralised to match their number, e.g. "generator" in <pc group of size 2 with 1 generator>. So I have made these changes to maximise compatibility.

See gap-system/gap#3992 and gap-system/gap#4050 for more context.

@codecov
Copy link

codecov bot commented Jun 11, 2020

Codecov Report

Merging #5 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master       #5   +/-   ##
=======================================
  Coverage   81.54%   81.54%           
=======================================
  Files          16       16           
  Lines        2476     2476           
=======================================
  Hits         2019     2019           
  Misses        457      457           

@olexandr-konovalov
Copy link
Member

Thanks @wilfwilson! I wonder if we will gain more by asking for IdGroup rather then the order and number of generators...

@wilfwilson
Copy link
Member Author

The purpose of this PR was to maintain the current level of information given by the tests, and I believe that the PR achieves that purpose.

As an example example, the previous output

[ <pc group of size 2 with 1 generators> ]

shows that the result is a list of one pc group of size 2 (with one generator), and my new test verifies

gap> Length(x) = 1 and IsPcGroup(x[1]) and Size(x[1]) = 2;

i.e. that the result is a list of one pc group of size 2.

Nevertheless I have added calls to CodePcGroup and IdGroup to enhance the tests.

@olexandr-konovalov
Copy link
Member

@wilfwilson thanks! I am happy with this version too.

Copy link
Member

@fingolfin fingolfin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I think this or a variant should be merged. Personally I'd streamline the changed tests a bit, as indicated in a comment

tst/construct.tst Outdated Show resolved Hide resolved
@wilfwilson
Copy link
Member Author

Updated as suggested.

@olexandr-konovalov olexandr-konovalov merged commit cff2a7b into gap-packages:master Oct 24, 2020
@olexandr-konovalov
Copy link
Member

@heikodietrich I have merged this (forgot that this is a package, not main GAP repo). Hopefully you're happy with this PR!

@heikodietrich
Copy link
Collaborator

heikodietrich commented Oct 24, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants