diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-09-12 01:29:32 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-09-12 01:29:32 +0000 |
commit | 29ff46e5ee94c217b44d7dd0dfa09932fab98bf9 (patch) | |
tree | 1b2c8e788bc4a9d422bb5b9d0752a62214276cf2 /test/ruby | |
parent | b519545a6dedf68a0ccaa62bf154f098622233b6 (diff) | |
download | ruby-29ff46e5ee94c217b44d7dd0dfa09932fab98bf9.tar.gz |
test_rational.rb: r51828
* test/ruby/test_rational.rb (test_conv): test for r51828,
encoding of exception message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_rational.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_rational.rb b/test/ruby/test_rational.rb index 1f32a49273..3abfef1ca6 100644 --- a/test/ruby/test_rational.rb +++ b/test/ruby/test_rational.rb @@ -110,6 +110,7 @@ class Rational_Test < Test::Unit::TestCase 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)} |