JADE Environment Development Ideas

What's new in the JADE 2025 release?

IMPROVED DEVELOPER EFFICIENCY. ENHANCED INTEGRATIONS. NEW WEB DEVELOPMENT FRAMEWORK

The Jade 2025 release focuses on modernising the developer experience and helping you build faster, smarter, and more scalable applications.


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