blob: 50f21cec20aa816ae6bc2e62abd9658ede949b45 (
plain)
1
2
3
4
5
6
7
8
9
|
require_relative '../../spec_helper'
describe :rational_hash, shared: true do
# BUG: Rational(2, 3).hash == Rational(3, 2).hash
it "is static" do
Rational(2, 3).hash.should == Rational(2, 3).hash
Rational(2, 4).hash.should_not == Rational(2, 3).hash
end
end
|