зеркало из https://github.com/github/ruby.git
* test/ruby/test_complexrational.rb: Remove duplicated raise.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
6112b29003
Коммит
a22221caca
|
@ -1,3 +1,7 @@
|
|||
Thu May 5 18:08:31 2016 Yuichiro Kaneko <yui-knk@ruby-lang.org>
|
||||
|
||||
* test/ruby/test_complexrational.rb: Remove duplicated raise.
|
||||
|
||||
Thu May 5 14:41:05 2016 Yuichiro Kaneko <yui-knk@ruby-lang.org>
|
||||
|
||||
* string.c (rb_str_sub): Fix a special match variable name.
|
||||
|
|
|
@ -273,7 +273,7 @@ class SimpleRat < Numeric
|
|||
self.class.new(a, b)
|
||||
when Integer
|
||||
if o == 0
|
||||
raise raise ZeroDivisionError, "divided by zero"
|
||||
raise ZeroDivisionError, "divided by zero"
|
||||
end
|
||||
self.quo(self.class.new(o))
|
||||
when Float
|
||||
|
|
Загрузка…
Ссылка в новой задаче