nickva commented on code in PR #5181:
URL: https://github.com/apache/couchdb/pull/5181#discussion_r1724025133
##########
src/config/src/config.erl:
##########
@@ -612,7 +612,13 @@ to_float_test() ->
?assertEqual(1.0, to_float(<<"1.0">>)),
?assertEqual(1.0, to_float("1.0")),
?assertEqual(-1.1, to_float("-01.1")),
- ?assertEqual(0.0, to_float("-0.0")),
+ ?assertEqual(
+ case erlang:system_info(otp_release) of
+ Ver when Ver =:= "27" -> -0.0;
+ _ -> 0.0
+ end,
+ to_float("-0.0")
+ ),
Review Comment:
Ooh, good find @jiahuili430. I had no idea we even had `?assertEquiv/1`It
looks like was introduced in
https://github.com/apache/couchdb/commit/306d2e2df54fa9406adf1022c4d250040b90e42a
by Adam. Well that's perfect for what we want, let's use it!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]