diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-24 09:57:53 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-24 09:57:53 +0000 |
| commit | 320553cda48fac77e8cc2284b10b0f091a51722e (patch) | |
| tree | a6cd8b6ecfb5e2f52f04cbbe29e4fd9f3adbd59e /test/ruby/test_dir.rb | |
| parent | a9d73d360df0d3bc6b738cb10858ae63f24f847a (diff) | |
| download | ruby-320553cda48fac77e8cc2284b10b0f091a51722e.tar.gz ruby-320553cda48fac77e8cc2284b10b0f091a51722e.tar.xz ruby-320553cda48fac77e8cc2284b10b0f091a51722e.zip | |
* test/ruby/test_dir.rb (TestDir::setup): ?c now makes a string.
* lib/test/unit/autorunner.rb (Test::Unit::AutoRunner::initialize):
initialize @workdir to stop warning.
* lib/drb/drb.rb (DRb::DRbServer::InvokeMethod::perform_without_block):
replace funcall by send!. other files in the distribution as well.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_dir.rb')
| -rw-r--r-- | test/ruby/test_dir.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ruby/test_dir.rb b/test/ruby/test_dir.rb index c419bd8d4..164f13f71 100644 --- a/test/ruby/test_dir.rb +++ b/test/ruby/test_dir.rb @@ -10,10 +10,10 @@ class TestDir < Test::Unit::TestCase def setup Dir.mkdir(ROOT) for i in ?a..?z - if i % 2 == 0 - FileUtils.touch(File.join(ROOT, i.chr)) + if i.ord % 2 == 0 + FileUtils.touch(File.join(ROOT, i)) else - FileUtils.mkdir(File.join(ROOT, i.chr)) + FileUtils.mkdir(File.join(ROOT, i)) end end end @@ -31,7 +31,7 @@ class TestDir < Test::Unit::TestCase break unless name = dir.read cache << [pos, name] end - for x,y in cache.sort_by {|x| x[0] % 3 } # shuffle + for x,y in cache.sort_by {|z| z[0] % 3 } # shuffle dir.seek(x) assert_equal(y, dir.read) end |
