1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* {ext,lib,test}/**/*.rb: removed trailing spaces.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-03-06 03:56:38 +00:00
parent 9b52ae2e64
commit 287a34ae0d
856 changed files with 13989 additions and 13989 deletions

View file

@ -7,7 +7,7 @@ class Class
end
class TestBasicInstructions < Test::Unit::TestCase
def test_immediates
assert_equal((1==1), true)
assert_equal((1==2), false)
@ -30,7 +30,7 @@ class TestBasicInstructions < Test::Unit::TestCase
assert_equal false, (self == nil)
assert_equal false, (self == 0)
end
def test_string
expected = "str" + "ing"
assert_equal expected, 'string'
@ -55,14 +55,14 @@ class TestBasicInstructions < Test::Unit::TestCase
assert_equal :sym, :"#{s}"
assert_equal :sym, :"#{"#{"#{s}"}"}"
end
def test_xstr
assert_equal 'hoge', `echo hoge`.chomp
assert_equal '3', `echo #{1 + 2}`.chomp
hoge = 'huga'
assert_equal 'huga', `echo #{hoge}`.chomp
end
def test_regexp
assert_equal /test/, /test/
assert_equal 'test', /test/.source
@ -108,7 +108,7 @@ class TestBasicInstructions < Test::Unit::TestCase
assert_equal 'c', a[2]
assert_nil a[3]
end
def test_hash
assert_equal({}, {})
assert_equal({1=>2}, {1=>2})
@ -127,7 +127,7 @@ class TestBasicInstructions < Test::Unit::TestCase
assert_equal((1...3), (1...2+1))
assert_equal(('a'..'z'), ('a'..'z'))
end
def test_not
assert_equal true, !nil
assert_equal true, !false