[Gambas-bugtracker] Bug #1851: gb.test Assert.Approximate is wrong

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Mon Aug 3 12:20:31 CEST 2020


http://gambaswiki.org/bugtracker/edit?object=BUG.1851&from=L21haW4-

Christof THALHOFER reported a new bug.

Summary
-------

gb.test Assert.Approximate is wrong

Type             : Bug
Priority         : High
Gambas version   : Master
Product          : Development Environment


Description
-----------

The code of Assert.Approximate(Got, Expect, Bound) does not compare Got with Expect but Got with Bound. Also the note on failure is misleading.
Project attached.

Also the test of Assert.Approximate has to be more specific as it does not detect the failure!


System information
------------------

blah




More information about the Bugtracker mailing list