Skip to content

Commit

Permalink
More tests
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Dec 6, 2023
1 parent 178bab6 commit 77bd61e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions src/squint/compiler_common.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -821,9 +821,6 @@ break;}" body)
(derive #?(:clj clojure.lang.IPersistentList :cljs IList) ::list)
(derive #?(:clj clojure.lang.LazySeq :cljs LazySeq) ::list)
#?(:cljs (derive List ::list))
#_(derive #?(:bb (class (list))
:clj clojure.lang.PersistentList$EmptyList
:cljs EmptyList) ::list)
(derive #?(:bb (class (list))
:clj clojure.lang.PersistentList$EmptyList
:cljs EmptyList) ::empty-list)
Expand Down
3 changes: 2 additions & 1 deletion test/squint/compiler_test.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,8 @@
(testing "creates an empty list"
(is (eq '() (jsv! '(list))))
(is (eq '() (jsv! "()")))
(is (eq '() (jsv! "'()")))))
(is (eq '() (jsv! "'()")))
(is (eq '(1 2 3) (jsv! "'(1 2 3)")))))

(deftest instance-test
(is (true? (jsv! '(instance? js/Array []))))
Expand Down

0 comments on commit 77bd61e

Please sign in to comment.