blob: 35fd85060ca31a3c5ac6e23643ba5c70a6e37936 (
plain)
1
2
3
4
5
6
|
describe :bignum_abs, shared: true do
it "returns the absolute value" do
bignum_value(39).send(@method).should == 9223372036854775847
(-bignum_value(18)).send(@method).should == 9223372036854775826
end
end
|