mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
bc8dfdc059
commit
7a0981facc
1 changed files with 1 additions and 0 deletions
|
@ -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)}
|
||||
|
|
Loading…
Reference in a new issue