summaryrefslogtreecommitdiff
path: root/spec/rubyspec/core/bignum/hash_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rubyspec/core/bignum/hash_spec.rb')
-rw-r--r--spec/rubyspec/core/bignum/hash_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/rubyspec/core/bignum/hash_spec.rb b/spec/rubyspec/core/bignum/hash_spec.rb
new file mode 100644
index 0000000000..bdc85c3fdc
--- /dev/null
+++ b/spec/rubyspec/core/bignum/hash_spec.rb
@@ -0,0 +1,12 @@
+require File.expand_path('../../../spec_helper', __FILE__)
+
+describe "Bignum#hash" do
+ it "is provided" do
+ bignum_value.respond_to?(:hash).should == true
+ end
+
+ it "is stable" do
+ bignum_value.hash.should == bignum_value.hash
+ bignum_value.hash.should_not == bignum_value(1).hash
+ end
+end