deltatest.bmx 478 B

123456789101112131415161718192021222324
  1. Import BRL.MaxUnit
  2. New TTestSuite.run()
  3. Type MyTest Extends TTest
  4. Method testFloat() { test }
  5. assertEqualsF(11.99,11.991, 0.01, "Float")
  6. End Method
  7. Method testDouble() { test }
  8. assertEqualsD(11.99,11.991, 0.01, "Double")
  9. End Method
  10. Method testFloatFail() { test }
  11. assertEqualsF(11.99,11.991, 0.001, "Meant to fail - Float")
  12. End Method
  13. Method testDoubleFail() { test }
  14. assertEqualsD(11.99,11.991, 0.001, "Meant to fail - Double")
  15. End Method
  16. End Type