Feat: Generate and check for NaN
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.8k
- Forks
- 397
- Avg merge
- 21h 41m
- Merged PRs (30d)
- 3
Description
Description
The testDouble() method in TestRandomly was missing NaN as a possible generated value.
Expected Behavior
getDouble()should return all relevant edge cases, includingNaN.testDouble()should validateNaNalong with other cases.- The test should complete successfully without infinite loops.
Fix
- Update
getDouble()to generateNaN. - Modify
testDouble()to check forNaN. - Update caching of doubles.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the TestRandomly class and inspect the getDouble() and testDouble() methods, including how doubles are cached. Run the relevant existing tests first, then verify that NaN is generated and checked alongside other edge cases without causing an infinite loop.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- testing-qa
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100