summaryrefslogtreecommitdiff
path: root/bootstraptest/test_block.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-15 11:55:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-15 11:55:52 +0000
commit3a47cf3395dd4c4fe8bdd5df13aab698f2ca314b (patch)
treec4a278220ba8141b829c5c7b0777c1049cfe413c /bootstraptest/test_block.rb
parent39da1b63699faf30c86e753e193c29b81b16136d (diff)
* remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_block.rb')
-rw-r--r--bootstraptest/test_block.rb26
1 files changed, 13 insertions, 13 deletions
diff --git a/bootstraptest/test_block.rb b/bootstraptest/test_block.rb
index ce7f00b..ea6768c 100644
--- a/bootstraptest/test_block.rb
+++ b/bootstraptest/test_block.rb
@@ -75,7 +75,7 @@ assert_equal %q{[1, 2, 3]}, %q{
}
end
end
-
+
C.new.to_a
}
assert_equal %q{[4, 5, 6]}, %q{
@@ -87,7 +87,7 @@ assert_equal %q{[4, 5, 6]}, %q{
}
end
end
-
+
C.new.map{|e|
e + 3
}
@@ -110,7 +110,7 @@ assert_equal %q{20}, %q{
def m
yield 1
end
-
+
m{|ib|
m{|jb|
i = 20
@@ -121,7 +121,7 @@ assert_equal %q{2}, %q{
def m
yield 1
end
-
+
m{|ib|
m{|jb|
ib = 20
@@ -135,11 +135,11 @@ assert_equal %q{3}, %q{
yield
}
end
-
+
def iter2
yield
end
-
+
iter1{
jb = 2
iter1{
@@ -154,11 +154,11 @@ assert_equal %q{2}, %q{
yield
}
end
-
+
def iter2
yield
end
-
+
iter1{
jb = 2
iter1{
@@ -226,11 +226,11 @@ assert_equal %q{[10, 20, 30, 40, nil, nil]}, %q{
}
assert_equal %q{[1]}, %q{
$a = []
-
+
def iter
yield 1
end
-
+
def m
x = iter{|x|
$a << x
@@ -450,7 +450,7 @@ assert_equal 'ok', %q{
end
vs1 = []
C.new.each {|*v| vs1 << v }
- vs2 = []
+ vs2 = []
C.new.to_enum.each {|*v| vs2 << v }
vs1 == vs2 ? :ok : :ng
}, '[ruby-dev:32329]'
@@ -468,9 +468,9 @@ assert_equal '[nil, []]', %q{
def m() yield nil,[] end
l = lambda {|*v| v}
GC.stress=true
- r = m(&l)
+ r = m(&l)
GC.stress=false
- r.inspect
+ r.inspect
}, '[ruby-dev:32567]'
assert_equal NilClass.to_s, %q{