summaryrefslogtreecommitdiff
path: root/spec/ruby
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-02-10 16:57:56 -0800
committerGitHub <noreply@github.com>2023-02-10 16:57:56 -0800
commit6517d1a188cb0b9aff70f93df8630105dbb98ebc (patch)
tree97ba3bd0c324fbf8510a3be50ee34644c30766a5 /spec/ruby
parentd8facbabff91159b494d8a9e7d62c15c3d725c86 (diff)
downloadruby-6517d1a188cb0b9aff70f93df8630105dbb98ebc.tar.gz
[DOC] Move old ChangeLog files to doc/ChangeLog (#7293)
Diffstat (limited to 'spec/ruby')
-rw-r--r--spec/ruby/core/array/sum_spec.rb2
-rw-r--r--spec/ruby/core/enumerable/sum_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/array/sum_spec.rb b/spec/ruby/core/array/sum_spec.rb
index 8ca8353a67..34635d9bc0 100644
--- a/spec/ruby/core/array/sum_spec.rb
+++ b/spec/ruby/core/array/sum_spec.rb
@@ -10,7 +10,7 @@ describe "Array#sum" do
end
# https://bugs.ruby-lang.org/issues/12217
- # https://github.com/ruby/ruby/blob/master/doc/ChangeLog-2.4.0#L6208-L6214
+ # https://github.com/ruby/ruby/blob/master/doc/ChangeLog/ChangeLog-2.4.0#L6208-L6214
it "uses Kahan's compensated summation algorithm for precise sum of float numbers" do
floats = [2.7800000000000002, 5.0, 2.5, 4.44, 3.89, 3.89, 4.44, 7.78, 5.0, 2.7800000000000002, 5.0, 2.5]
naive_sum = floats.reduce { |sum, e| sum + e }
diff --git a/spec/ruby/core/enumerable/sum_spec.rb b/spec/ruby/core/enumerable/sum_spec.rb
index fc173e4173..2eb74db6ac 100644
--- a/spec/ruby/core/enumerable/sum_spec.rb
+++ b/spec/ruby/core/enumerable/sum_spec.rb
@@ -40,7 +40,7 @@ describe 'Enumerable#sum' do
end
# https://bugs.ruby-lang.org/issues/12217
- # https://github.com/ruby/ruby/blob/master/doc/ChangeLog-2.4.0#L6208-L6214
+ # https://github.com/ruby/ruby/blob/master/doc/ChangeLog/ChangeLog-2.4.0#L6208-L6214
it "uses Kahan's compensated summation algorithm for precise sum of float numbers" do
floats = [2.7800000000000002, 5.0, 2.5, 4.44, 3.89, 3.89, 4.44, 7.78, 5.0, 2.7800000000000002, 5.0, 2.5].to_enum
naive_sum = floats.reduce { |sum, e| sum + e }