Bugzilla – Bug 20073

castable-expression tests have wrong expected result

Last modified: 2012-12-09 19:26:09 UTC

The following test cases: cbcl-castable-decimal-007 cbcl-castable-decimal-008 cbcl-castable-decimal-009 cbcl-castable-decimal-010 cbcl-castable-integer-001 cbcl-castable-integer-002 cbcl-castable-integer-003 cbcl-castable-integer-004 have "fase" as their expected result. I don't understand why. I think the expected result should be "true", assuming the implementation does not pose any upper bounds on integers and decimals.

I have changed these tests to allow either true or false. An implementation is allowed to return false because the supplied value might be outside the limits of an integer/decimal; it is also allowed to return true, because the limits are implementation-defined.