summaryrefslogtreecommitdiff
path: root/test/psych
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2021-05-10 17:46:58 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-05-10 18:53:49 +0900
commit53c5a4bbe1851dba0dfcaf81c167290cbca93bac (patch)
tree5b52ac609c2c2df8c8db9b202b66b355a1d5c9c3 /test/psych
parent230d559f6b4e681fab8a540fb49c136100f54b2a (diff)
[ruby/psych] Fixed test-case for NaN
https://github.com/ruby/psych/commit/f85a008263
Diffstat (limited to 'test/psych')
-rw-r--r--test/psych/test_yaml_special_cases.rb4
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 4501704030e..eccbac4c7f5 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?