diff options
author | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2015-08-27 18:27:23 +0900 |
---|---|---|
committer | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2015-08-27 18:27:23 +0900 |
commit | 019741ab9559bc93f79625e1af3521719efe8708 (patch) | |
tree | bb5065ca5817e5abbd8d7f84f508ca055be4bef4 /test | |
parent | a69101003c12d00a9b50bae515eaeb1a56c614e4 (diff) | |
download | psych-019741ab9559bc93f79625e1af3521719efe8708.zip |
removed Ruby 1.9 support
Diffstat (limited to 'test')
-rw-r--r-- | test/psych/test_yamldbm.rb | 1 | ||||
-rw-r--r-- | test/psych/visitors/test_to_ruby.rb | 16 |
2 files changed, 7 insertions, 10 deletions
diff --git a/test/psych/test_yamldbm.rb b/test/psych/test_yamldbm.rb index 7853658..62c88b7 100644 --- a/test/psych/test_yamldbm.rb +++ b/test/psych/test_yamldbm.rb @@ -77,7 +77,6 @@ module Psych # end def test_key - skip 'only on ruby 2.0.0' if RUBY_VERSION < '2.0.0' @yamldbm['a'] = 'b' @yamldbm['c'] = 'd' assert_equal 'a', @yamldbm.key('b') diff --git a/test/psych/visitors/test_to_ruby.rb b/test/psych/visitors/test_to_ruby.rb index 5c6ba2b..19e5365 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 |