[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


Christof THALHOFER reported a new bug.


gb.test Assert.Approximate is wrong

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


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


More information about the Bugtracker mailing list