summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-26 07:42:35 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-26 07:42:35 +0000
commitaf49284e8c52da20b27f9c1331a5b243cff55283 (patch)
tree355d6bf78fbf869f6c091daea845932e5985cd55
parent1f18d5d4c7117912c323dd2daaf54649ecba6c1c (diff)
downloadruby-af49284e8c52da20b27f9c1331a5b243cff55283.tar.gz
ruby-af49284e8c52da20b27f9c1331a5b243cff55283.tar.xz
ruby-af49284e8c52da20b27f9c1331a5b243cff55283.zip
lib/pathname.rb (PathnameTest#test_plus): add 2 assertions.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--lib/pathname.rb2
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index e5ffba802..c4568efaf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 bf4dcf4d9..2ff2925d9 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