aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/test/clojure/clojure/contrib/test_io.clj9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/clojure/clojure/contrib/test_io.clj b/src/test/clojure/clojure/contrib/test_io.clj
new file mode 100644
index 00000000..53347658
--- /dev/null
+++ b/src/test/clojure/clojure/contrib/test_io.clj
@@ -0,0 +1,9 @@
+(ns clojure.contrib.test-io
+ (:use clojure.test clojure.contrib.io))
+
+(deftest file-str-backslash
+ (is (= (java.io.File.
+ (str "C:" java.io.File/separator
+ "Documents" java.io.File/separator
+ "file.txt"))
+ (file-str "C:\\Documents\\file.txt"))))