diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-12-10 18:57:20 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-12-10 18:57:20 +0900 |
commit | fd440b09fc64b1d2275942c7f6d1e1f4069e85ae (patch) | |
tree | 9d2d2a57ec55677127ace2694814af9eabb24e4e | |
parent | c33615b6543b46227e7f51c17c2d725cf5bfa2ef (diff) | |
download | ruby-fd440b09fc64b1d2275942c7f6d1e1f4069e85ae.tar.gz |
A negative denominator case in the Rational string parsing test
-rw-r--r-- | test/ruby/test_rational.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_rational.rb b/test/ruby/test_rational.rb index fe9de64c4c..a51ce3dc99 100644 --- a/test/ruby/test_rational.rb +++ b/test/ruby/test_rational.rb @@ -823,6 +823,8 @@ class Rational_Test < Test::Unit::TestCase ng[5, 1, '5/_3'] ng[5, 3, '5/3_'] ng[5, 3, '5/3x'] + + ng[5, 1, '5/-3'] end def test_parse_zero_denominator |