diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-26 07:42:35 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-26 07:42:35 +0000 |
commit | 88947c09c4ca803df0a79a81b519cbb5e498e85c (patch) | |
tree | 355d6bf78fbf869f6c091daea845932e5985cd55 | |
parent | 16bcd53d215ba6a627a4dbb1c88ce67a3fece08d (diff) | |
download | ruby-88947c09c4ca803df0a79a81b519cbb5e498e85c.tar.gz |
lib/pathname.rb (PathnameTest#test_plus): add 2 assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | lib/pathname.rb | 2 |
2 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,7 @@ +Fri Dec 26 16:40:53 2003 Tanaka Akira <akr@m17n.org> + + * lib/pathname.rb (PathnameTest#test_plus): add 2 assertions. + Fri Dec 26 14:05:13 2003 Minero Aoki <aamine@loveruby.net> * test/ruby/test_pack.rb: new test test_pack_N. diff --git a/lib/pathname.rb b/lib/pathname.rb index bf4dcf4d94..2ff2925d9e 100644 --- a/lib/pathname.rb +++ b/lib/pathname.rb @@ -776,9 +776,11 @@ if $0 == __FILE__ assert_pathname_plus('/', '/', '..') assert_pathname_plus('.', 'a', '..') assert_pathname_plus('a', 'a/b', '..') + assert_pathname_plus('../..', '..', '..') assert_pathname_plus('/c', '/', '../c') assert_pathname_plus('c', 'a', '../c') assert_pathname_plus('a/c', 'a/b', '../c') + assert_pathname_plus('../../c', '..', '../c') end end end |