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 | 8ef5da3be1577bb5ae7f55b60cf9fedb10ecb85e (patch) | |
tree | a700e3fe92165180b04451746f9c4fda4f038289 /sample/test.rb | |
parent | 3ec0bc3828794a6ef6293b53b403af8bc2362934 (diff) | |
download | ruby-8ef5da3be1577bb5ae7f55b60cf9fedb10ecb85e.tar.gz |
consistent parentheses in assignment RHS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample/test.rb')
-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 2cf4eea1f4..6488558fd1 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) |