n.c.
[chise/ruby.git] / test / test-path.rb
diff --git a/test/test-path.rb b/test/test-path.rb
new file mode 100755 (executable)
index 0000000..0ec8b94
--- /dev/null
@@ -0,0 +1,15 @@
+#!/usr/bin/env ruby
+# Copyright (C) 2002-2004 Kouichirou Eto, All rights reserved.
+
+$LOAD_PATH.unshift("..")
+require "test/unit"
+require "chise/path"
+
+class TestPath < Test::Unit::TestCase
+  def test_path
+    assert_equal("%2F", "/".path.escape.to_s)
+    assert_equal("/", "%2F".path.unescape.to_s)
+    assert_equal("()+!", "<>*?".path.unix_to_win.to_s)
+    assert_equal("<>*?", "()+!".path.win_to_unix.to_s)
+  end
+end