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

Improve stability of tests in PolyhedralGeometry #4197

Merged
merged 16 commits into from
Oct 24, 2024
Merged

Conversation

alexej-jordan
Copy link
Collaborator

Prevent tests from randomly failing if the order of some properties changes or rays are represented differently.

@lgoettgens lgoettgens added the topic: polyhedral geometry Issue concerns polyhedral geometry code label Oct 13, 2024
@lgoettgens
Copy link
Member

This unfortunately has a conflict

Copy link

codecov bot commented Oct 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.59%. Comparing base (97785ad) to head (1a3e8e7).
Report is 15 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4197      +/-   ##
==========================================
- Coverage   84.60%   84.59%   -0.02%     
==========================================
  Files         631      631              
  Lines       84939    85023      +84     
==========================================
+ Hits        71864    71921      +57     
- Misses      13075    13102      +27     
Files with missing lines Coverage Δ
src/PolyhedralGeometry/iterators.jl 92.00% <100.00%> (+1.25%) ⬆️

... and 19 files with indirect coverage changes

@benlorenz benlorenz closed this Oct 17, 2024
@benlorenz benlorenz reopened this Oct 17, 2024
src/PolyhedralGeometry/iterators.jl Outdated Show resolved Hide resolved
test/PolyhedralGeometry/cone.jl Show resolved Hide resolved
test/PolyhedralGeometry/subdivision_of_points.jl Outdated Show resolved Hide resolved
@alexej-jordan alexej-jordan marked this pull request as ready for review October 20, 2024 18:05
@lkastner lkastner merged commit 31ca31b into master Oct 24, 2024
30 checks passed
@lkastner lkastner deleted the aj/test-order branch October 24, 2024 08:16
HechtiDerLachs pushed a commit to HechtiDerLachs/Oscar.jl that referenced this pull request Oct 30, 2024
* introduced helper functions for stable tests in polyhedral geometry, applied to test/polyhedron.jl

* increased stability for cone tests

* increased stability for extended tests

* increased stability for polyhedral_fan tests

* increased stability for scalar_types tests

* increased stability for polyhedral_complex tests

* increased stability for subdivision_of_points tests

* improved == for RayVector; forced RayVector != PointVector

* fixed comparison between RayVectors; comparison between PointVector and RayVector now throws an error

* fixed formatting for iterators.jl

* added and adjusted commented test in cone.jl

* increased code coverage for changes in iterators.jl

* improved comparison between RayVectors

* re-added test for matrix(ZZ, rays(Cone6))

* adjusted test for weights in subdivision_of_points.jl

* improved comparison between RayVectors and added additional tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: polyhedral geometry Issue concerns polyhedral geometry code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants