aboutsummaryrefslogtreecommitdiffstats
path: root/test/psych/visitors/test_to_ruby.rb
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-07 16:58:10 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-07 16:58:10 +0000
commitdb70e477d310d9daf8f22b009521fcd67fec0205 (patch)
tree73778b242ce07f61ed0861409e473888251b056f /test/psych/visitors/test_to_ruby.rb
parentc5942b91a2812cae59878b5e0d4ecf7c0e41cfdc (diff)
downloadruby-db70e477d310d9daf8f22b009521fcd67fec0205.tar.gz
* ext/psych/*: update psych to 2.0.16
* test/psych/*: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/psych/visitors/test_to_ruby.rb')
-rw-r--r--test/psych/visitors/test_to_ruby.rb16
1 files changed, 7 insertions, 9 deletions
diff --git a/test/psych/visitors/test_to_ruby.rb b/test/psych/visitors/test_to_ruby.rb
index 5c6ba2b397..19e5365244 100644
--- a/test/psych/visitors/test_to_ruby.rb
+++ b/test/psych/visitors/test_to_ruby.rb
@@ -166,16 +166,14 @@ description:
assert_equal Complex(1,2), mapping.to_ruby
end
- if RUBY_VERSION >= '1.9'
- def test_complex_string
- node = Nodes::Scalar.new '3+4i', nil, "!ruby/object:Complex"
- assert_equal Complex(3, 4), node.to_ruby
- end
+ def test_complex_string
+ node = Nodes::Scalar.new '3+4i', nil, "!ruby/object:Complex"
+ assert_equal Complex(3, 4), node.to_ruby
+ end
- def test_rational_string
- node = Nodes::Scalar.new '1/2', nil, "!ruby/object:Rational"
- assert_equal Rational(1, 2), node.to_ruby
- end
+ def test_rational_string
+ node = Nodes::Scalar.new '1/2', nil, "!ruby/object:Rational"
+ assert_equal Rational(1, 2), node.to_ruby
end
def test_range_string