summaryrefslogtreecommitdiff
path: root/sample/hash.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/hash.rb')
-rw-r--r--sample/hash.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/sample/hash.rb b/sample/hash.rb
index 126b17dfe4..85f719e7eb 100644
--- a/sample/hash.rb
+++ b/sample/hash.rb
@@ -1,3 +1,10 @@
+# hash value
+# output:
+# 78651
+# 78651
+# 78651
+# -45637
+
print(+-1.0.hash,"\n")
print(-1.0.hash,"\n")
print((-1.0).hash,"\n")