(:test) function garminDouble(logger) { var mile = 0.6213711922d; var km = 21.0975; var hm = mile * km; Test.assertEqualMessage(hm, 13.109379d, Lang.format("half marathon in miles $1$ equals to $2$", [ hm, 13.109379d ])); }
The following code fails with: Exception: ASSERTION FAILED: half marathon in miles 13.109379 equals to 13.109379
Please make sure that the printed version equals what the actual test uses for the precision of the double. As soon as you toString() the values, it becomes the same value. Which is unclear and very confusing.