ruby-changes:39748
From: nobu <ko1@a...>
Date: Sat, 12 Sep 2015 10:29:50 +0900 (JST)
Subject: [ruby-changes:39748] nobu:r51829 (trunk): test_rational.rb: r51828
nobu 2015-09-12 10:29:32 +0900 (Sat, 12 Sep 2015) New Revision: 51829 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51829 Log: test_rational.rb: r51828 * test/ruby/test_rational.rb (test_conv): test for r51828, encoding of exception message. Modified files: trunk/test/ruby/test_rational.rb Index: test/ruby/test_rational.rb =================================================================== --- test/ruby/test_rational.rb (revision 51828) +++ test/ruby/test_rational.rb (revision 51829) @@ -110,6 +110,7 @@ class Rational_Test < Test::Unit::TestCa https://github.com/ruby/ruby/blob/trunk/test/ruby/test_rational.rb#L110 assert_equal(Rational(1),Rational('3/3','3/3')) assert_raise(TypeError){Rational(nil)} assert_raise(ArgumentError){Rational('')} + assert_raise_with_message(ArgumentError, /\u{221a 2668}/) {Rational("\u{221a 2668}")} assert_raise(TypeError){Rational(Object.new)} assert_raise(ArgumentError){Rational()} assert_raise(ArgumentError){Rational(1,2,3)} -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/