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

Fix Concatenation to reject Concatenation( [ 1 ] ) instead of returning 1, and in general do a better job at validating its inputs #5427

Merged
merged 2 commits into from
Apr 4, 2023

Conversation

zickgraf
Copy link
Contributor

In particular, this lets the undefined expression Concatenation( [ 1 ] ) throw an error instead of returning 1.

The first commit fixes some inconsistencies I discovered while grepping for functions similar to Concatenation.

Text for release notes

none

@fingolfin
Copy link
Member

Can you add a testcase (perhaps in a new file in tst/testbugfix ?), e.g. Concatenation( [ 1 ] )?

In particular, this lets the undefined expression `Concatenation( [ 1 ] )`
throw an error instead of returning `1`.
@zickgraf
Copy link
Contributor Author

zickgraf commented Apr 2, 2023

Can you add a testcase (perhaps in a new file in tst/testbugfix ?), e.g. Concatenation( [ 1 ] )?

Done. I don't think this is a bugfix in the strict sense, so I have added a file in tst/testinstall/opers (this directory seems to also cover functions which are not operations).

@fingolfin fingolfin merged commit f164717 into gap-system:master Apr 4, 2023
@zickgraf zickgraf deleted the Concatenation_checks branch April 4, 2023 13:48
@fingolfin fingolfin changed the title Add type checks to Concatenation Enhance Concatenation to better validate its arguments and e.g. reject Concatenation( [ 1 ] ) with an error Jan 23, 2024
@fingolfin fingolfin added kind: bug Issues describing general bugs, and PRs fixing them kind: enhancement Label for issues suggesting enhancements; and for pull requests implementing enhancements topic: library release notes: use title For PRs: the title of this PR is suitable for direct use in the release notes labels Jan 23, 2024
@fingolfin fingolfin changed the title Enhance Concatenation to better validate its arguments and e.g. reject Concatenation( [ 1 ] ) with an error Fix Concatenation to reject Concatenation( [ 1 ] ) instead of returning 1, and in general do a better job at validating its inputs Jan 23, 2024
@fingolfin fingolfin removed the kind: enhancement Label for issues suggesting enhancements; and for pull requests implementing enhancements label Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Issues describing general bugs, and PRs fixing them release notes: use title For PRs: the title of this PR is suitable for direct use in the release notes topic: library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants