summaryrefslogtreecommitdiff
path: root/test/psych/test_yaml_special_cases.rb
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-20 04:25:04 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-20 04:25:04 +0000
commit1c92766bf0b7394057c00f576fce5464a3037fd9 (patch)
tree6e31dd2fb9e05d1ff01cd26cae14237217a5c888 /test/psych/test_yaml_special_cases.rb
parent8ea464a9c1b94bbe1f697bfd6c03e87411272701 (diff)
Merge Pysch-3.1.0.pre2 from ruby/psych.
* Added deprecated warnings for the new interface of keyword argument. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/psych/test_yaml_special_cases.rb')
-rw-r--r--test/psych/test_yaml_special_cases.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/psych/test_yaml_special_cases.rb b/test/psych/test_yaml_special_cases.rb
index 66448d4..4501704 100644
--- a/test/psych/test_yaml_special_cases.rb
+++ b/test/psych/test_yaml_special_cases.rb
@@ -17,7 +17,7 @@ module Psych
assert_equal [], Psych.load_stream(s)
assert_equal false, Psych.parse(s)
assert_equal [], Psych.parse_stream(s).transform
- assert_equal nil, Psych.safe_load(s)
+ assert_nil Psych.safe_load(s)
end
def test_false
@@ -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
@@ -112,11 +112,11 @@ module Psych
def test_null
s = "null"
- assert_equal nil, Psych.load(s)
+ assert_nil Psych.load(s)
assert_equal [nil], Psych.load_stream(s)
- assert_equal nil, Psych.parse(s).transform
+ assert_nil Psych.parse(s).transform
assert_equal [nil], Psych.parse_stream(s).transform
- assert_equal nil, Psych.safe_load(s)
+ assert_nil Psych.safe_load(s)
end
private