Skip to content

Commit

Permalink
ignore file separator differences in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
puredanger committed Nov 29, 2021
1 parent 9c2806e commit 124935f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/test/clojure/clojure/tools/build/tasks/test_pom.clj
Expand Up @@ -178,11 +178,12 @@
(is (str/includes? generated "data.json"))))))

(deftest test-pom-path
(is (= "META-INF/maven/a.b/c/pom.xml" (api/pom-path {:lib 'a.b/c})))
(is (= (jio/file "META-INF/maven/a.b/c/pom.xml") (jio/file (api/pom-path {:lib 'a.b/c}))))

(let [prior api/*project-root*]
(api/set-project-root! ".")
(is (= "./foo/META-INF/maven/a.b/c/pom.xml" (api/pom-path {:class-dir "foo" :lib 'a.b/c})))
(is (= (jio/file "./foo/META-INF/maven/a.b/c/pom.xml")
(jio/file (api/pom-path {:class-dir "foo" :lib 'a.b/c}))))
(api/set-project-root! prior)))

(deftest test-validate-lib
Expand Down

0 comments on commit 124935f

Please sign in to comment.