summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-22 15:24:22 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-22 15:24:22 +0000
commit0f078cbfc445cf079b2d3e3fb3eb0c85f9c2318b (patch)
tree8fea831c6acb2091b38ee12bfa7943844f1defec /test
parentb1a0dc709b561971f01fd878dc56d668ddfe399a (diff)
* test/ruby/test_dir.rb: get rid of debug print.
* test/ruby/test_module.rb: fixed to make test-all work. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_dir.rb2
-rw-r--r--test/ruby/test_module.rb10
2 files changed, 3 insertions, 9 deletions
diff --git a/test/ruby/test_dir.rb b/test/ruby/test_dir.rb
index cabe38270e..a30a367243 100644
--- a/test/ruby/test_dir.rb
+++ b/test/ruby/test_dir.rb
@@ -208,9 +208,7 @@ class TestDir < Test::Unit::TestCase
assert_equal([*?a..?z, *"symlink-a".."symlink-z"].each_slice(2).map {|f, _| File.join(@root, f + "/") }.sort,
Dir.glob(File.join(@root, "*/")).sort)
- puts("1");
Dir.glob(File.join(@root, "**/"))
- puts("2");
end
end
diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb
index 990fc017b5..f90543196b 100644
--- a/test/ruby/test_module.rb
+++ b/test/ruby/test_module.rb
@@ -385,20 +385,16 @@ class TestModule < Test::Unit::TestCase
assert_equal([], Module.constants(false))
src = <<-INPUT
+ ary = Module.constants
module M
WALTER = 99
end
class Module
include M
end
- p Module.constants, Module.constants(true), Module.constants(false)
+ p Module.constants - ary, Module.constants(true), Module.constants(false)
INPUT
- assert_in_out_err([], src) do |out, err|
- assert_equal([:BasicObject, :M], eval(out[0]).sort - Module.constants)
- assert_equal("[:WALTER]", out[1])
- assert_equal("[]", out[2])
- assert_equal([], err)
- end
+ assert_in_out_err([], src, %w([:M] [:WALTER] []), [])
end
module M1