rascal icon indicating copy to clipboard operation
rascal copied to clipboard

Random test failed in JSON IO roundtripping test with a number `0E-17` (which is a weird number indeed)

Open jurgenvinju opened this issue 3 years ago • 1 comments

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??

jurgenvinju avatar May 17 '22 08:05 jurgenvinju

The question is how that number could even exist in the Vallang runtime. It should have been canonicalized to int=>0

jurgenvinju avatar May 17 '22 08:05 jurgenvinju