summaryrefslogtreecommitdiffstats
path: root/sample
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-04 04:17:26 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-04 04:17:26 +0000
commitf0367359d6f55de6caf62fd1dbb72d3661d4ae12 (patch)
tree3ab2686a359f6cbdda8446d7382f9aa541c2490a /sample
parent6820886b9beea4608e3c4f135406648c53129124 (diff)
downloadruby-f0367359d6f55de6caf62fd1dbb72d3661d4ae12.tar.gz
ruby-f0367359d6f55de6caf62fd1dbb72d3661d4ae12.tar.xz
ruby-f0367359d6f55de6caf62fd1dbb72d3661d4ae12.zip
matz
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample')
-rw-r--r--sample/test.rb12
1 files changed, 4 insertions, 8 deletions
diff --git a/sample/test.rb b/sample/test.rb
index 9da67f572..91355969c 100644
--- a/sample/test.rb
+++ b/sample/test.rb
@@ -609,14 +609,10 @@ ok($good)
b = 10**80
a = b * 9 + 7
-ok(7 == a % b)
-ok(7-b == a % (-b))
-ok(b-7 == (-a) % b)
-ok(-7 ==(-a) % (-b))
-ok(7 ==a.remainder(b))
-ok(7 ==a.remainder(-b))
-ok(-7 == (-a).remainder(b))
-ok(-7 == (-a).remainder(-b))
+ok(7 ==a % b)
+ok(7 ==a % -b)
+ok(-7 == (-a) % b)
+ok(-7 == (-a) % (-b))
check "string & char"