ruby-changes:66120
From: Hiroshi <ko1@a...>
Date: Mon, 10 May 2021 19:12:33 +0900 (JST)
Subject: [ruby-changes:66120] 53c5a4bbe1 (master): [ruby/psych] Fixed test-case for NaN
https://git.ruby-lang.org/ruby.git/commit/?id=53c5a4bbe1 From 53c5a4bbe1851dba0dfcaf81c167290cbca93bac Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Mon, 10 May 2021 17:46:58 +0900 Subject: [ruby/psych] Fixed test-case for NaN https://github.com/ruby/psych/commit/f85a008263 --- test/psych/test_yaml_special_cases.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/psych/test_yaml_special_cases.rb b/test/psych/test_yaml_special_cases.rb index 4501704..eccbac4 100644 --- a/test/psych/test_yaml_special_cases.rb +++ b/test/psych/test_yaml_special_cases.rb @@ -58,8 +58,8 @@ module Psych https://github.com/ruby/ruby/blob/trunk/test/psych/test_yaml_special_cases.rb#L58 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? -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/