ruby-changes:31790
From: headius <ko1@a...>
Date: Wed, 27 Nov 2013 12:28:54 +0900 (JST)
Subject: [ruby-changes:31790] headius:r43869 (trunk): * test/ruby/test_string.rb: Add test for error when appending a
headius 2013-11-27 12:28:48 +0900 (Wed, 27 Nov 2013) New Revision: 43869 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43869 Log: * test/ruby/test_string.rb: Add test for error when appending a Symbol into a String. Modified files: trunk/test/ruby/test_string.rb Index: test/ruby/test_string.rb =================================================================== --- test/ruby/test_string.rb (revision 43868) +++ test/ruby/test_string.rb (revision 43869) @@ -478,6 +478,7 @@ class TestString < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_string.rb#L478 result << 0x0300 expected = S("\u0300".encode(Encoding::UTF_16LE)) assert_equal(expected, result, bug7090) + assert_raise(TypeError) { 'foo' << :foo } end def test_count -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/