Making assertEquals smarter in regards to the type
I have been building a lot of JadeTestCases in the last couple of days and frustratingly when using assertEquals Jade is always treating the literal decimal number as a Real. So even though the value equates to the same it fails.
e.g. vars
testObject : TestObject;
begin
create testObject transient;
testObject.setPropertyValue(TestObject::decimalValue.name, 12.43.Decimal);
testObject.setPropertyValue(TestObject::realValue.name, 11.3);
assertEquals(testObject.getDecimalValue, 12.43); // FAILS
assertEquals(testObject.getRealValue, 11.3); // PASSES
epilog
delete testObject;
end;
Is it possible to make assertEquals smarter in detecting the type? Or better still, if there is a literal specified does Jade have to be sensitive on the type specified?