grains:total impacted by rounding errors
Open
bug
enhancement
question
- Dominant language
- R
- Stars
- 31
- Forks
- 46
- Avg merge
- 4h 25m
- Merged PRs (30d)
- 8
Description
Becuase total is a float it is actually comparing:
`Error: Test failed: 'returns the total number of square on the board'
* total() not equal to 1.844674e+19.`
If you use option(digits = 22) you can see:
`* total() not equal to 18446744073709551616.`
Test was supposed to be:
` expect_equal(total(), 18446744073709551615)`
See thread for more discussion. Do you want to teach bigInts and importing libraries this early in the track?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.