diff options
author | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2018-09-18 17:56:01 +0900 |
---|---|---|
committer | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2018-09-18 17:56:01 +0900 |
commit | 7da7b8142ae579401be9dc0b8720e48427b20d93 (patch) | |
tree | 0350ef2b99a6758ec30123f663164a807b00a1cf | |
parent | cb8bebd0d13f0fac0436cfa097e72ed7c0883c61 (diff) | |
download | psych-7da7b8142ae579401be9dc0b8720e48427b20d93.zip |
Put parentheses before minus operator.
-rw-r--r-- | test/psych/test_yaml_special_cases.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/psych/test_yaml_special_cases.rb b/test/psych/test_yaml_special_cases.rb index 94085d0..4501704 100644 --- a/test/psych/test_yaml_special_cases.rb +++ b/test/psych/test_yaml_special_cases.rb @@ -49,11 +49,11 @@ module Psych def test_inf s = "-.inf" - assert_equal -Float::INFINITY, Psych.load(s) - assert_equal [-Float::INFINITY], Psych.load_stream(s) - assert_equal -Float::INFINITY, Psych.parse(s).transform - assert_equal [-Float::INFINITY], Psych.parse_stream(s).transform - assert_equal -Float::INFINITY, Psych.safe_load(s) + assert_equal(-Float::INFINITY, Psych.load(s)) + assert_equal([-Float::INFINITY], Psych.load_stream(s)) + assert_equal(-Float::INFINITY, Psych.parse(s).transform) + assert_equal([-Float::INFINITY], Psych.parse_stream(s).transform) + assert_equal(-Float::INFINITY, Psych.safe_load(s)) end def test_NaN |