summaryrefslogtreecommitdiff
path: root/test/psych/test_yaml_special_cases.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2021-11-11 20:39:22 +0900
committernagachika <nagachika@ruby-lang.org>2021-11-22 10:51:35 +0900
commit5afefe4371b19155fc4d692a5ff2616ad748e9cc (patch)
treec5c8e0394dece73dc33becd094655147e2919dcb /test/psych/test_yaml_special_cases.rb
parent5a6f8462dc00ae453268eb7b42b1d395b9f644f8 (diff)
Bump psych version to 3.3.2
Diffstat (limited to 'test/psych/test_yaml_special_cases.rb')
-rw-r--r--test/psych/test_yaml_special_cases.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/psych/test_yaml_special_cases.rb b/test/psych/test_yaml_special_cases.rb
index 4501704030..205457bcae 100644
--- a/test/psych/test_yaml_special_cases.rb
+++ b/test/psych/test_yaml_special_cases.rb
@@ -13,7 +13,7 @@ module Psych
def test_empty_string
s = ""
- assert_equal false, Psych.load(s)
+ assert_equal false, Psych.unsafe_load(s)
assert_equal [], Psych.load_stream(s)
assert_equal false, Psych.parse(s)
assert_equal [], Psych.parse_stream(s).transform
@@ -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?