[前][次][番号順一覧][スレッド一覧]

ruby-changes:30699

From: nobu <ko1@a...>
Date: Mon, 2 Sep 2013 23:34:04 +0900 (JST)
Subject: [ruby-changes:30699] nobu:r42778 (trunk): test_string.rb: remove duplicated code

nobu	2013-09-02 23:33:56 +0900 (Mon, 02 Sep 2013)

  New Revision: 42778

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42778

  Log:
    test_string.rb: remove duplicated code
    
    * test/ruby/test_string.rb (TestString#test_frozen_dstring): remove
      duplicated assertion.

  Modified files:
    trunk/test/ruby/test_string.rb
Index: test/ruby/test_string.rb
===================================================================
--- test/ruby/test_string.rb	(revision 42777)
+++ test/ruby/test_string.rb	(revision 42778)
@@ -2223,13 +2223,7 @@ class TestString < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_string.rb#L2223
   end
 
   def test_frozen_string_cannot_be_adjacent
-    assert_raises(SyntaxError) do
-      eval(%{
-        "hello"f "world"
-      })
-    end
-
-    assert_raises(SyntaxError) do
+    assert_raise(SyntaxError) do
       eval(%{
         "hello"f "world"
       })

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]