A negative denominator case in the Rational string parsing test

This commit is contained in:
Nobuyoshi Nakada 2022-12-10 18:57:20 +09:00
parent c33615b654
commit fd440b09fc
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6

View File

@ -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