Skip to content

Commit

Permalink
Proper test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sohalt committed Jan 9, 2025
1 parent 1044e59 commit ec81b2c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/babashka/fs_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -836,9 +836,7 @@
(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/unixify (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"))
(let [uri (java.net.URI/create (str "jar:file:" (fs/unixify (fs/cwd)) "/test-resources/bencode-1.1.0.jar"))
fs (java.nio.file.FileSystems/newFileSystem uri {})
path-in-zip (.getPath ^java.nio.file.FileSystem fs "/bencode" (into-array String []))]
(is (fs/path path-in-zip "core.clj"))))

0 comments on commit ec81b2c

Please sign in to comment.