diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-05-22 12:10:52 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-05-22 12:10:52 +0000 |
commit | c7b63ec87205b26c0ffcbfb6585b0268c6ec4e88 (patch) | |
tree | 90d68ca5a5c8a026c22c577ae674af85f8e34fbf /test/ruby/test_parse.rb | |
parent | b53d547f38894962f299442219c2ed5814e63715 (diff) |
test_parse.rb: move assertions
* test/ruby/test_module.rb (test_remove_class_variable): move an
assertion for Module#remove_class_variable from test_parse.rb.
* test/ruby/test_symbol.rb (test_intern, test_all_symbols): move
assertions for Symbol#intern and Symbol.all_symbols from
test_parse.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_parse.rb')
-rw-r--r-- | test/ruby/test_parse.rb | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/test/ruby/test_parse.rb b/test/ruby/test_parse.rb index 216cdc083b..80d09c1e7b 100644 --- a/test/ruby/test_parse.rb +++ b/test/ruby/test_parse.rb @@ -839,26 +839,6 @@ x = __ENCODING__ end end - def test_intern - assert_equal(':""', ''.intern.inspect) - assert_equal(':$foo', '$foo'.intern.inspect) - assert_equal(':"!foo"', '!foo'.intern.inspect) - assert_equal(':"foo=="', "foo==".intern.inspect) - end - - def test_all_symbols - x = Symbol.all_symbols - assert_kind_of(Array, x) - assert_empty(x.reject {|s| s.is_a?(Symbol) }) - end - - def test_is_class_id - c = Class.new - assert_raise(NameError) do - c.instance_eval { remove_class_variable(:@var) } - end - end - def test_method_block_location bug5614 = '[ruby-core:40936]' expected = nil |