[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Unit-Test fails
[Thread Prev] | [Thread Next]
- Subject: Unit-Test fails
- From: Claus Dietrich <claus.dietrich@xxxxxxxxxx>
- Date: Tue, 28 Jan 2025 19:11:42 +0100
- To: Gambas MailingList <user@xxxxxxxxxxxxxxxxxxxxxx>
I prepared a unit-test for a Julian Day algorithm, where I compare the result with a reference value out of a book: Assert.Equals(JulianDay(Date(-1001, 8, 17, 21, 36, 0), 0), 1355671.4, "JD to be 1355671.4 on the 17.08.-1001 21:36:00 UTC")
The test fails with following output in the IDE-console:not ok 14 - TestExamples.HJulianDate.121: JD to be 1355671.4 on the 17.08.-1001 21:36:00 UTC
# # ------------- Expected ------------- # 1355671.4 # # ---------------- Got --------------- # 1355671.4 # ------------------------------------ #Why is that? How can an Equals-test fail, when the displayed comparison values are obviously equal?
13 other unit tests of the same kind are OK. Best regards Claus
Re: Unit-Test fails | T Lee Davidson <t.lee.davidson@xxxxxxxxx> |