diff --git a/src/org/rascalmpl/library/lang/rascal/tests/library/lang/json/JSONIOTests.rsc b/src/org/rascalmpl/library/lang/rascal/tests/library/lang/json/JSONIOTests.rsc index c6f03244f8..ce28b66894 100644 --- a/src/org/rascalmpl/library/lang/rascal/tests/library/lang/json/JSONIOTests.rsc +++ b/src/org/rascalmpl/library/lang/rascal/tests/library/lang/json/JSONIOTests.rsc @@ -11,7 +11,9 @@ loc targetFile = |memory://test-tmp/test-<"">.json|; bool writeRead(type[&T] returnType, &T dt) { dt = visit (dt) { + // reals must fit in double case real r => fitDouble(r) + // integers must not overflow case int i => i % floor(pow(2, 10)) when abs(i) > pow(2, 10) }