Skip to content

Fix division by zero error in prop_ppDiffR - #38

Merged
ninioArtillero merged 2 commits into
seereason:masterfrom
tweag:xg/fix-tests
Aug 4, 2026
Merged

Fix division by zero error in prop_ppDiffR#38
ninioArtillero merged 2 commits into
seereason:masterfrom
tweag:xg/fix-tests

Conversation

@ninioArtillero

@ninioArtillero ninioArtillero commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

The prop_ppDiffR has a division by zero whenever the random generated inputs are equal, resulting in a (false) test suite failure. This happens with

cabal test diff-tests --test-options='-t "compare random with diff" --test-seed=5636946790713128664'

This PR fixes this by avoiding this edge case.

Comment thread test/Test.hs Outdated
Co-authored-by: Facundo Domínguez <facundo.dominguez@tweag.io>
@ninioArtillero
ninioArtillero marked this pull request as ready for review August 3, 2026 22:58
@ninioArtillero
ninioArtillero merged commit f403f1a into seereason:master Aug 4, 2026
13 checks passed
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.

2 participants