This is an automated email from the ASF dual-hosted git repository.
jiahuili430 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/main by this push:
new 0fb698325 Add OTP 27 to pull request CI list
0fb698325 is described below
commit 0fb6983259f54fa23e1822a11abab20d409bbc87
Author: Jiahui Li <[email protected]>
AuthorDate: Fri Aug 16 16:35:01 2024 -0500
Add OTP 27 to pull request CI list
---
build-aux/Jenkinsfile.pr | 2 +-
src/config/src/config.erl | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/build-aux/Jenkinsfile.pr b/build-aux/Jenkinsfile.pr
index 3418f0abf..c88ed85cc 100644
--- a/build-aux/Jenkinsfile.pr
+++ b/build-aux/Jenkinsfile.pr
@@ -247,7 +247,7 @@ pipeline {
axes {
axis {
name 'ERLANG_VERSION'
- values '25.3.2.13', '26.2.5.2'
+ values '25.3.2.13', '26.2.5.2', '27.0.1'
}
axis {
name 'SM_VSN'
diff --git a/src/config/src/config.erl b/src/config/src/config.erl
index 70b140149..1696fae3a 100644
--- a/src/config/src/config.erl
+++ b/src/config/src/config.erl
@@ -596,7 +596,7 @@ validate_config_update(Sec, Key, Val) ->
end.
-ifdef(TEST).
--include_lib("eunit/include/eunit.hrl").
+-include_lib("couch/include/couch_eunit.hrl").
to_integer_test() ->
?assertEqual(1, to_integer(1)),
@@ -612,7 +612,8 @@ 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(0.0, to_float("0.0")),
+ ?assertEquiv(0.0, to_float("-0.0")),
?assertEqual(0.0, to_float("+0.0")),
ok.