diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-16 17:47:19 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-16 17:47:19 +0000 |
commit | 9246a73c21dab6031e8036b3ebaa3b943d2119d1 (patch) | |
tree | a700e3fe92165180b04451746f9c4fda4f038289 /sample | |
parent | d9a34753f78b8db5115b10bb1df137a16c4c90cf (diff) | |
download | ruby-9246a73c21dab6031e8036b3ebaa3b943d2119d1.tar.gz ruby-9246a73c21dab6031e8036b3ebaa3b943d2119d1.tar.xz ruby-9246a73c21dab6031e8036b3ebaa3b943d2119d1.zip |
consistent parentheses in assignment RHS.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample')
-rw-r--r-- | sample/test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sample/test.rb b/sample/test.rb index 2cf4eea1f..6488558fd 100644 --- a/sample/test.rb +++ b/sample/test.rb @@ -732,7 +732,7 @@ $x.sort!{|a,b| b-a} # reverse sort test_ok($x == [7,5,3,2,1]) # split test -$x = "The Botest_ok of Mormon" +$x = "The Book of Mormon" test_ok($x.split(//).reverse!.join == $x.reverse) test_ok($x.reverse == $x.reverse!) test_ok("1 byte string".split(//).reverse.join(":") == "g:n:i:r:t:s: :e:t:y:b: :1") @@ -1233,14 +1233,14 @@ test_ok(2**32 - 5 == (2**32-3)-2) $good = true; for i in 1000..1014 - $good = false if ((1<<i) != (2**i)) + $good = false if ((1 << i) != (2**i)) end test_ok($good) $good = true; -n1=1<<1000 +n1= 1 << 1000 for i in 1000..1014 - $good = false if ((1<<i) != n1) + $good = false if ((1 << i) != n1) n1 *= 2 end test_ok($good) |