summaryrefslogtreecommitdiff
path: root/sample
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-29 09:11:18 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-29 09:11:18 +0000
commite617fd0bf84f80de8fc40a1ea86e96bd2848493a (patch)
tree1bd18eee6123390a0e581e6ba48c655c8614d034 /sample
parent9a4786104165f7f6b15cc26e349d138e465dacf2 (diff)
* win32/win32.c (_CRTIMP): redefine _CRTIMP on MinGW.
* configure.in: remove '-D__USE_CRTIMP' from XCFLAGS on MinGW. * win32/win32.c (NtMakeCmdVector): handle quotes only if not instring. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample')
-rw-r--r--sample/test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/sample/test.rb b/sample/test.rb
index c43b3c0..c4a0c61 100644
--- a/sample/test.rb
+++ b/sample/test.rb
@@ -928,9 +928,9 @@ class IterTest
a
end
end
-test_ok(IterTest.new(nil).method(:f).to_proc.call([1]) == [1])
+test_ok(IterTest.new(nil).method(:f).to_block.call([1]) == [1])
m = /\w+/.match("abc")
-test_ok(IterTest.new(nil).method(:f).to_proc.call([m]) == [m])
+test_ok(IterTest.new(nil).method(:f).to_block.call([m]) == [m])
IterTest.new([0]).each0 {|x| test_ok(x == 0)}
IterTest.new([1]).each1 {|x| test_ok(x == 1)}