[前][次][番号順一覧][スレッド一覧]

ruby-changes:60909

From: Nobuyoshi <ko1@a...>
Date: Sun, 26 Apr 2020 12:53:41 +0900 (JST)
Subject: [ruby-changes:60909] 7860277527 (master): [ruby/spec] Fixed missing should

https://git.ruby-lang.org/ruby.git/commit/?id=7860277527

From 7860277527b9fef577cdaa0958147eb78a0ee9b7 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sun, 26 Apr 2020 12:26:03 +0900
Subject: [ruby/spec] Fixed missing should


diff --git a/spec/ruby/library/bigdecimal/precs_spec.rb b/spec/ruby/library/bigdecimal/precs_spec.rb
index f9320f2..78a6234 100644
--- a/spec/ruby/library/bigdecimal/precs_spec.rb
+++ b/spec/ruby/library/bigdecimal/precs_spec.rb
@@ -40,7 +40,7 @@ describe "BigDecimal#precs" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/bigdecimal/precs_spec.rb#L40
   it "returns the maximum number of significant digits as the second value" do
     BigDecimal("3.14159").precs[1].should >= 6
     BigDecimal('1').precs[1].should >= 1
-    BigDecimal('1' + '0' * 100).precs[1] >= 101
+    BigDecimal('1' + '0' * 100).precs[1].should >= 101
     [@infinity, @infinity_neg, @nan, @zero, @zero_neg].each do |value|
       value.precs[1].should >= 1
     end
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]