rascal
rascal copied to clipboard
Random test failed in JSON IO roundtripping test with a number `0E-17` (which is a weird number indeed)
Describe the bug
Error: [ERROR] jsonWithNum1: <1155,53>(org.rascalmpl.test.infrastructure.RascalJUnitParallelRecursiveTestRunner$ModuleTester) Time elapsed: 0.001 s <<< ERROR!
java.lang.Exception:
Test lang::rascal::tests::library::lang::json::JSONIOTests::jsonWithNum1 failed due to
test returned false
Actual parameters:
num =>0E-17
Watch out that 0E-17 is a very weird number. 0 but really small??
The question is how that number could even exist in the Vallang runtime. It should have been canonicalized to int=>0