Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
:url "https://github.com/jank-lang/clojure-test-suite"
:license {:name "MPL 2.0"
:url "https://www.mozilla.org/en-US/MPL/2.0/"}
:dependencies [[org.clojure/clojure "1.12.0"]]
:dependencies [[org.clojure/clojure "1.12.0"]
[org.clojure/clojurescript "1.12.42"]]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cider doesn't work on this project without this, @jeaye if you want me to do this in a separate PR that's fine but I think we should have it

:plugins [[com.jakemccrary/lein-test-refresh "0.25.0"]])
7 changes: 5 additions & 2 deletions test/clojure/core_test/mapcat.cljc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns clojure.core-test.mapcat
(:require [clojure.test :as t :refer [deftest testing is]]
[clojure.core-test.portability #?(:cljs :refer-macros :default :refer) [when-var-exists]]))
[clojure.core-test.portability :refer-macros [when-var-exists]]))


(when-var-exists mapcat
Expand Down Expand Up @@ -56,4 +56,7 @@
(mapcat 42 [1 2]))))
(testing "non-concatable return value"
(is (thrown? #?(:cljs :default :default Exception)
(mapcat identity (range 2)))))))
;; we need to realize the lazy data structure
;; in order for `cljs` to throw on the result
;; hence `(into [])`
(into [] (mapcat identity (range 2))))))))
Loading