summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--test/yaml/test_yaml.rb17
2 files changed, 22 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 4ba69e05b3..7a9d5c3080 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sun Feb 8 15:41:45 2004 akira yamada <akira@ruby-lang.org>
+
+ * test/yaml/test_yaml.rb (YAML_Unit_Tests::test_range_cycle):
+ added tests. [ruby-core:02306] [ruby-core:02311]
+
Sun Feb 8 14:24:35 2004 Minero Aoki <aamine@loveruby.net>
* lib/net/http.rb (HTTP#request): should not overwrite Connection
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