[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unit-Test fails


Am 28.01.25 um 19:54 schrieb T Lee Davidson:

It must be in the way that floating point numbers are handled. The following also reports "ok":
' Gambas module file


Public Sub Main()

    Assert.Equals(1355671.4000000005, 1355671.4, "Yes?")

End

The appropriate test for floating point is 'Assert.Approximate'.

Alles Gute

Christof Thalhofer

--
Dies ist keine Signatur


Follow-Ups:
Re: Unit-Test failsT Lee Davidson <t.lee.davidson@xxxxxxxxx>
References:
Unit-Test failsClaus Dietrich <claus.dietrich@xxxxxxxxxx>
Re: Unit-Test failsT Lee Davidson <t.lee.davidson@xxxxxxxxx>