JADE Environment Development Ideas

What's new in the upcoming JADE release?

IMPROVED DEVELOPER EFFICIENCY. ENHANCED SECURITY. SMOOTHER INTEGRATION

The JADE 2022 release meets tomorrow’s business demands.


Start your update to JADE's latest release

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?
  • Guest
  • May 1 2019
  • Future consideration
  • Attach files
  • +3