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

ruby-changes:46208

From: hsbt <ko1@a...>
Date: Wed, 12 Apr 2017 09:21:24 +0900 (JST)
Subject: [ruby-changes:46208] hsbt:r58324 (trunk): Use `assert_raise` instead of `assert_raises`.

hsbt	2017-04-12 09:21:20 +0900 (Wed, 12 Apr 2017)

  New Revision: 58324

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58324

  Log:
    Use `assert_raise` instead of `assert_raises`.

  Modified files:
    trunk/test/json/json_encoding_test.rb
Index: test/json/json_encoding_test.rb
===================================================================
--- test/json/json_encoding_test.rb	(revision 58323)
+++ test/json/json_encoding_test.rb	(revision 58324)
@@ -79,8 +79,8 @@ class JSONEncodingTest < Test::Unit::Tes https://github.com/ruby/ruby/blob/trunk/test/json/json_encoding_test.rb#L79
     json = '["\ud840\udc01"]'
     assert_equal json, generate(utf8, :ascii_only => true)
     assert_equal utf8, parse(json)
-    assert_raises(JSON::ParserError) { parse('"\u"') }
-    assert_raises(JSON::ParserError) { parse('"\ud800"') }
+    assert_raise(JSON::ParserError) { parse('"\u"') }
+    assert_raise(JSON::ParserError) { parse('"\ud800"') }
   end
 
   def test_chars

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

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