1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
akira 2004-02-08 06:43:53 +00:00
parent 992d2749ac
commit 54d612c27f
2 changed files with 22 additions and 0 deletions

View file

@ -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

View file

@ -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
#