From 1343680398592089929607a3d213f731847a7762 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 6 Nov 2008 22:36:07 +0000 Subject: * lib/yaml/rubytypes.rb: support Rational and Complex as 1.8 does. a patch from Hiroshi Moriyama in [ruby-dev:36899]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/yaml/test_yaml.rb | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'test/yaml/test_yaml.rb') diff --git a/test/yaml/test_yaml.rb b/test/yaml/test_yaml.rb index 74a2fa851e..ed94705fcf 100644 --- a/test/yaml/test_yaml.rb +++ b/test/yaml/test_yaml.rb @@ -1107,6 +1107,30 @@ EOY end + def test_ruby_rational + assert_to_yaml( Rational(1, 2), <