-
Notifications
You must be signed in to change notification settings - Fork 160
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
OnTuples([-1], (1,2)) returns [-1] #717
Comments
On Fri, Apr 08, 2016 at 07:42:33AM -0700, james-d-mitchell wrote:
This seems to indeed be a bug indeed caused by
(this should be an error)
You'd want OnPoints(-1, (1,2,)) here though, wouldn't you? And this
[-1,-2] is not a set. If you use OnSets(AsSet([-1,-2]), (1,2)) you also get |
Added bonus in |
Oops, I've just corrected the types you pointed, out, it should have been (and now is)
and
Both of these give an error, which is what I meant. |
Entering a break loop when trying to act on negative points seems mildly hilarious too, after all the code might have done all kinds of assumptions or computations based on the fact that there was a negative entry there... |
`OnTuplesPerm` left negative integers invariant instead of giving an error, which would be consistent with the manual.
`OnTuplesPerm` left negative integers invariant instead of giving an error, which would be consistent with the manual.
Fix OnTuples([-1], (1,2)) returning [-1], as reported in #717
I get:
which contradicts the manual's assertion that:
Since:
This is also not consistent with the behaviour of
OnSets
:This arises from the following lines in the function
OnTuplesPerm
in permutat.c:The text was updated successfully, but these errors were encountered: