summaryrefslogtreecommitdiffstats
path: root/test/ostruct
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-21 17:38:37 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-21 17:38:37 +0000
commitef4219e20d81471e3e331743c2f0d87955ef9ff8 (patch)
tree935b2ca272e9019fe8a64ec4aaaf81197e593480 /test/ostruct
parent9dab9285ea14dd4f5d392ed578062874f4dad75a (diff)
* eval.c (ruby_cleanup): should not ignore exit_value in END
execution. [ruby-dev:21670] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ostruct')
0 files changed, 0 insertions, 0 deletions
'>
require "test/unit"
require "webrick/httputils"

class TestWEBrickHTTPUtils < Test::Unit::TestCase
  include WEBrick::HTTPUtils

  def test_normilize_path
    assert_equal("/foo",       normalize_path("/foo"))
    assert_equal("/foo/bar/",  normalize_path("/foo/bar/"))

    assert_equal("/",          normalize_path("/foo/../"))
    assert_equal("/",          normalize_path("/foo/.."))
    assert_equal("/",          normalize_path("/foo/bar/../../"))
    assert_equal("/",          normalize_path("/foo/bar/../.."))
    assert_equal("/",          normalize_path("/foo/bar/../.."))
    assert_equal("/baz",       normalize_path("/foo/bar/../../baz"))
    assert_equal("/baz",       normalize_path("/foo/../bar/../baz"))
    assert_equal("/baz/",      normalize_path("/foo/../bar/../baz/"))
    assert_equal("/...",       normalize_path("/bar/../..."))