diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-01-22 14:53:12 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-01-22 14:53:12 +0000 |
commit | d8d5e67184e0647f56576a500993c064e60fc26a (patch) | |
tree | dcd5ea6e77c1d952acba1eeb81abb63079eb9355 /test/ruby/test_symbol.rb | |
parent | 1d674dc54730b7ffe900146139cbac13fe967f50 (diff) | |
download | ruby-d8d5e67184e0647f56576a500993c064e60fc26a.tar.gz |
* test/ruby/test_regexp.rb, test/ruby/test_symbol.rb,
test/ruby/test_variable.rb: add some tests (for coverage of
compile.c).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_symbol.rb')
-rw-r--r-- | test/ruby/test_symbol.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_symbol.rb b/test/ruby/test_symbol.rb index f402da3907..0f09669293 100644 --- a/test/ruby/test_symbol.rb +++ b/test/ruby/test_symbol.rb @@ -132,4 +132,8 @@ class TestSymbol < Test::Unit::TestCase assert_equal(:Foo, :foo.capitalize) assert_equal(:fOo, :FoO.swapcase) end + + def test_symbol_poped + assert_nothing_raised { eval('a = 1; :"#{ a }"; 1') } + end end |