-
Notifications
You must be signed in to change notification settings - Fork 63
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 ring conformance tests for more unsafe / in place operators #1814
Comments
I started doing something like this in https://github.com/oscar-system/Oscar.jl/pull/4165/files#diff-9f8fc45a5e19d896c2d816f269367d03ffa689cfebd1afdfac0ebce93793e3fb for Optimally, this conformance test would be a separate function that can then be called from the ring conformance test function, but other types can call this test as well. |
@lgoettgens ah yes that looks good, great! For "other types" I assume you have matrices and perhaps groups in mind (for now) ? Of course they support different subsets. So I guess you are saying the separate function should have a signature roughly like this:
Here I am assuming we'd have multiple methods to cover ...
Later, the conformance tests could also test e.g.
|
Right now
test/Rings-conformance-tests.jl:169
has this:So we only test
add!
,mul!
andaddmul!
. But notzero!
,one!
,neg!
etc. etc. for which we now also have generic implementations. All of those should be added...And then the tests could also be more comprehensive: right now we only check the results. But we should also add checks that verify that the inputs are generally not modified unexpectedly.
And we should also check the variants, so e.g.
add!(a,b)
andadd!(a,a)
should also be tested.The text was updated successfully, but these errors were encountered: