summaryrefslogtreecommitdiff
path: root/spec/mspec/spec
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2022-01-28 14:42:36 +0100
committerBenoit Daloze <eregontp@gmail.com>2022-01-28 14:42:36 +0100
commitbb5f71088774b14c96fe11718e5e1b7ffb20fff2 (patch)
treebdb2466448e7b61100169e58e110c047a56d5072 /spec/mspec/spec
parentd66e7ec77b0067b113e1b9f584e7f5f741d6cd78 (diff)
Update to ruby/mspec@49adc2f
Diffstat (limited to 'spec/mspec/spec')
-rw-r--r--spec/mspec/spec/helpers/numeric_spec.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/spec/mspec/spec/helpers/numeric_spec.rb b/spec/mspec/spec/helpers/numeric_spec.rb
index e65f3e8610..64495b7276 100644
--- a/spec/mspec/spec/helpers/numeric_spec.rb
+++ b/spec/mspec/spec/helpers/numeric_spec.rb
@@ -4,11 +4,17 @@ require 'mspec/helpers'
RSpec.describe Object, "#bignum_value" do
it "returns a value that is an instance of Bignum on any platform" do
- expect(bignum_value).to eq(0x8000_0000_0000_0000)
+ expect(bignum_value).to be > fixnum_max
end
it "returns the default value incremented by the argument" do
- expect(bignum_value(42)).to eq(0x8000_0000_0000_002a)
+ expect(bignum_value(42)).to eq(bignum_value + 42)
+ end
+end
+
+RSpec.describe Object, "-bignum_value" do
+ it "returns a value that is an instance of Bignum on any platform" do
+ expect(-bignum_value).to be < fixnum_min
end
end