From 54d612c27f60daf293ba97c5cd7ddae330cbfe65 Mon Sep 17 00:00:00 2001 From: akira Date: Sun, 8 Feb 2004 06:43:53 +0000 Subject: * test/yaml/test_yaml.rb (YAML_Unit_Tests::test_range_cycle): added tests. [ruby-core:02306] [ruby-core:02311] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/yaml/test_yaml.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'test/yaml') diff --git a/test/yaml/test_yaml.rb b/test/yaml/test_yaml.rb index fd9f79b5f3..3597772c59 100644 --- a/test/yaml/test_yaml.rb +++ b/test/yaml/test_yaml.rb @@ -1195,6 +1195,23 @@ EOY end end + # + # Test Range cycle + # + def test_range_cycle + # + # From Minero Aoki [ruby-core:02306] + # + t = "a".."z" + assert_equal( t, YAML.load( YAML.dump( t ) ) ) + + # + # From Nobu Nakada [ruby-core:02311] + # + t = "0".."1" + assert_equal( t, YAML.load( YAML.dump( t ) ) ) + end + # # Circular references # -- cgit v1.2.3