summaryrefslogtreecommitdiff
path: root/test/yaml/test_yaml.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/yaml/test_yaml.rb')
-rw-r--r--test/yaml/test_yaml.rb17
1 files changed, 17 insertions, 0 deletions
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
@@ -1196,6 +1196,23 @@ EOY
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
#
def test_circular_references