From 5055fbc186702f346ca590041aa5ccc37203678b Mon Sep 17 00:00:00 2001 From: thorhj Date: Fri, 24 May 2024 11:08:45 +0200 Subject: fixed test to float.negate after changes to OTP OTP v27.0 changed floating point behavior, such that 0.0 and -0.0 have distinct internal representations and are no longer considered equal. Details: https://erlang.org/documentation/doc-15.0-rc1/doc/upcoming_incompatibilities.html#0-0-and-0-0-will-no-longer-be-exactly-equal --- test/gleam/float_test.gleam | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test/gleam/float_test.gleam b/test/gleam/float_test.gleam index 4e881f1..a91c2c4 100644 --- a/test/gleam/float_test.gleam +++ b/test/gleam/float_test.gleam @@ -325,6 +325,7 @@ pub fn negate_test() { |> should.equal(-2.0) float.negate(0.0) + |> float.negate |> should.equal(0.0) } -- cgit v1.2.3