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