diff options
Diffstat (limited to 'spec/mspec/spec/helpers/numeric_spec.rb')
-rw-r--r-- | spec/mspec/spec/helpers/numeric_spec.rb | 10 |
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 |