diff options
author | thorhj <burpen@gmail.com> | 2024-05-24 11:08:45 +0200 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2024-05-24 14:42:19 +0100 |
commit | 5055fbc186702f346ca590041aa5ccc37203678b (patch) | |
tree | 4c47245561080e450c1d04eeed3cdef3b4a22300 /test | |
parent | fe517817bd4a58904e67fd462de817fccaaba92e (diff) | |
download | gleam_stdlib-5055fbc186702f346ca590041aa5ccc37203678b.tar.gz gleam_stdlib-5055fbc186702f346ca590041aa5ccc37203678b.zip |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/gleam/float_test.gleam | 1 |
1 files changed, 1 insertions, 0 deletions
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) } |