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 basic conformance tests for is_irreducible #1952

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fingolfin
Copy link
Member

No description provided.

Copy link

codecov bot commented Jan 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.24%. Comparing base (6be03b7) to head (a275ce6).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1952      +/-   ##
==========================================
+ Coverage   88.21%   88.24%   +0.02%     
==========================================
  Files         119      119              
  Lines       30427    30427              
==========================================
+ Hits        26842    26851       +9     
+ Misses       3585     3576       -9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines +741 to +750
@testset "Basic properties" begin
try
flag = is_irreducible(x)
@test flag || is_trivial(R)
catch e
if !(e isa NotImplementedError)
rethrow(e)
end
end
end
Copy link
Member Author

Choose a reason for hiding this comment

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

This bit here is not yet done. The idea is to consider the test as passing if it throws a NotImplementedError. It's cumbersome this way (and not yet correct). Perhaps a @test_if_implemented macro could handle it nicer for use in other places. Or perhaps we investigate a completely different approach and e.g. add a trait can_compute(R, is_irreducible), that may be more reliable...

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.

1 participant