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

ruby-changes:55886

From: Benoit <ko1@a...>
Date: Wed, 29 May 2019 06:16:25 +0900 (JST)
Subject: [ruby-changes:55886] Benoit Daloze: 91f5a8db59 (trunk): Update to ruby/spec@0c5c5c1

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

From 91f5a8db593f9eef739517dc0067dae439934311 Mon Sep 17 00:00:00 2001
From: Benoit Daloze <eregontp@g...>
Date: Tue, 28 May 2019 23:15:57 +0200
Subject: Update to ruby/spec@0c5c5c1


diff --git a/spec/ruby/library/bigdecimal/constants_spec.rb b/spec/ruby/library/bigdecimal/constants_spec.rb
index 1e08c67..1eb24d8 100644
--- a/spec/ruby/library/bigdecimal/constants_spec.rb
+++ b/spec/ruby/library/bigdecimal/constants_spec.rb
@@ -9,13 +9,9 @@ describe "BigDecimal constants" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/bigdecimal/constants_spec.rb#L9
   end
 
   it "has a BASE value" do
-    platform_is wordsize: 64 do
-      BigDecimal::BASE.should == 1000000000
-    end
-
-    platform_is wordsize: 32 do
-      BigDecimal::BASE.should == 10000
-    end
+    # The actual one is decided based on HAVE_INT64_T in MRI,
+    # which is hard to check here.
+    [10000, 1000000000].should include(BigDecimal::BASE)
   end
 
   it "has a NaN value" do
-- 
cgit v0.10.2


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

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