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 promotion rules for fmpz -> Singular types #364

Merged
merged 1 commit into from
Jan 22, 2021

Conversation

fingolfin
Copy link
Member

Mostly for conveniences in code which works directly with Singular.jl objects.

Honestly, I am not sure if this is a good idea or a really bad one... Wonder if @wbhart or @fieker have any thoughts about this (I'll have no hard feelings if this is not merged; but it was useful for me to learn more about the AA/Nemo promotion system ;-) ).

@wbhart
Copy link
Contributor

wbhart commented Jan 22, 2021

I don't have any objections, if the test cases do actually trigger those promote_rules.

@fingolfin fingolfin marked this pull request as draft January 22, 2021 15:56
@fingolfin
Copy link
Member Author

Actually, not all are covered yet (Codecov report reveals this). I'll fix that.

@fingolfin
Copy link
Member Author

OK, I extended the tests and made them more systematic. Let's see if that covered all the new rules (once the Codecov report is in)

@fingolfin fingolfin marked this pull request as ready for review January 22, 2021 16:11
Mostly for conveniences in code which works directly with Singular.jl objects.

Also extend the tests for adhoc arithmetic / promotion rules
@fingolfin
Copy link
Member Author

On https://codecov.io/gh/oscar-system/Singular.jl/pull/364 one can verify that all the new promotion rules are triggered (plus some more code which wasn't covered before)

@fingolfin fingolfin merged commit 1d0b6ee into oscar-system:master Jan 22, 2021
@fingolfin fingolfin deleted the mh/promote_rules branch January 22, 2021 18:45
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.

None yet

2 participants