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 | 87076b86f937c5e59013ed3db03ff85b034baafe (patch) | |
| tree | 7700294984b6d052759564cc31f140b3e71ed0e5 /lib | |
| parent | 82f0f0ba8734aae82de715be9f8110744b7d435e (diff) | |
| download | ruby-87076b86f937c5e59013ed3db03ff85b034baafe.tar.gz ruby-87076b86f937c5e59013ed3db03ff85b034baafe.tar.xz ruby-87076b86f937c5e59013ed3db03ff85b034baafe.zip | |
lib/pathname.rb (PathnameTest#test_plus): add 2 assertions.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/pathname.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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 |
