Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sohalt committed Jan 9, 2025
1 parent 463e6cf commit f182c0b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/babashka/fs_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -835,3 +835,10 @@
file-in-dir (fs/create-temp-file {:dir dir})]
(is (= (str (fs/owner dir)) (str (fs/owner file-in-dir)))))))

(deftest issue-135-test
(def u (java.net.URI/create (str "jar:file:" (fs/cwd) "/test-resources/bencode-1.1.0.jar")))
(def fs (java.nio.file.FileSystems/newFileSystem u {}))

(def path-in-zip (.getPath ^java.nio.file.FileSystem fs "/bencode" (into-array String [])))

(fs/path path-in-zip "core.clj"))

0 comments on commit f182c0b

Please sign in to comment.