diff options
author | headius <headius@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-27 03:28:48 +0000 |
---|---|---|
committer | headius <headius@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-27 03:28:48 +0000 |
commit | 26e969182ba3ccc35e611800ece366b4b106c755 (patch) | |
tree | 7dbd3c0bc5f95f1bbc9482b9daa68d4d54a9be5d /test/ruby | |
parent | 5080a75621dcc14badec2436677da6000a6db44b (diff) | |
download | ruby-26e969182ba3ccc35e611800ece366b4b106c755.tar.gz |
* test/ruby/test_string.rb: Add test for error when appending a
Symbol into a String.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_string.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_string.rb b/test/ruby/test_string.rb index 537af2fded..2ff8458d9b 100644 --- a/test/ruby/test_string.rb +++ b/test/ruby/test_string.rb @@ -478,6 +478,7 @@ class TestString < Test::Unit::TestCase result << 0x0300 expected = S("\u0300".encode(Encoding::UTF_16LE)) assert_equal(expected, result, bug7090) + assert_raise(TypeError) { 'foo' << :foo } end def test_count |