From 88947c09c4ca803df0a79a81b519cbb5e498e85c Mon Sep 17 00:00:00 2001 From: akr Date: Fri, 26 Dec 2003 07:42:35 +0000 Subject: [PATCH] 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 --- ChangeLog | 4 ++++ lib/pathname.rb | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index e5ffba802f..c4568efafa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Dec 26 16:40:53 2003 Tanaka Akira + + * lib/pathname.rb (PathnameTest#test_plus): add 2 assertions. + Fri Dec 26 14:05:13 2003 Minero Aoki * 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