update.
[chise/ruby.git] / test / test-path.rb
1 #!/usr/bin/env ruby
2 # Copyright (C) 2002-2004 Kouichirou Eto, All rights reserved.
3
4 $LOAD_PATH.unshift("..")
5 require "test/unit"
6 require "chise/path"
7
8 class TestPath < Test::Unit::TestCase
9   def test_path
10     assert_equal("%2F", "/".path.escape.to_s)
11     assert_equal("/", "%2F".path.unescape.to_s)
12     assert_equal("()+!", "<>*?".path.unix_to_win.to_s)
13     assert_equal("<>*?", "()+!".path.win_to_unix.to_s)
14   end
15 end