diff options
author | Hiroshi SHIBATA <[email protected]> | 2021-05-10 17:46:58 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2021-05-10 18:53:49 +0900 |
commit | 53c5a4bbe1851dba0dfcaf81c167290cbca93bac (patch) | |
tree | 5b52ac609c2c2df8c8db9b202b66b355a1d5c9c3 | |
parent | 230d559f6b4e681fab8a540fb49c136100f54b2a (diff) |
[ruby/psych] Fixed test-case for NaN
https://github.com/ruby/psych/commit/f85a008263
-rw-r--r-- | test/psych/test_yaml_special_cases.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/psych/test_yaml_special_cases.rb b/test/psych/test_yaml_special_cases.rb index 4501704030..eccbac4c7f 100644 --- a/test/psych/test_yaml_special_cases.rb +++ b/test/psych/test_yaml_special_cases.rb @@ -58,8 +58,8 @@ module Psych def test_NaN s = ".NaN" - assert Float::NAN, Psych.load(s).nan? - assert [Float::NAN], Psych.load_stream(s).first.nan? + assert Psych.load(s).nan? + assert Psych.load_stream(s).first.nan? assert Psych.parse(s).transform.nan? assert Psych.parse_stream(s).transform.first.nan? assert Psych.safe_load(s).nan? |