Skip to content

Commit

Permalink
* test/yaml/test_yaml.rb (YAML_Unit_Tests::test_range_cycle):
Browse files Browse the repository at this point in the history
  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
  • Loading branch information
akira committed Feb 8, 2004
1 parent 992d274 commit 54d612c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Sun Feb 8 15:41:45 2004 akira yamada <[email protected]>

* 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 <[email protected]>

* lib/net/http.rb (HTTP#request): should not overwrite Connection
Expand Down
17 changes: 17 additions & 0 deletions test/yaml/test_yaml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1195,6 +1195,23 @@ def test_time_now_cycle
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
#
Expand Down

0 comments on commit 54d612c

Please sign in to comment.