Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

Commit

Permalink
Relax apropos tests because stateful
Browse files Browse the repository at this point in the history
  • Loading branch information
arichiardi committed May 15, 2018
1 parent 567507d commit a7ae700
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/lumo/lumo/repl_tests.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,12 @@ Special Form
(is (empty? (with-out-str (lumo/doc every)))))

(deftest test-apropos
(is (= '(cljs.core/ffirst) (lumo/apropos "ffirst")))
(is (= '(cljs.core/ffirst) (lumo/apropos 'ffirst)))
(is (some #{'cljs.core/ffirst} (lumo/apropos "ffirst")))
(is (some #{'cljs.core/ffirst} (lumo/apropos 'ffirst)))
;; Clojure compat
(is (= () (lumo/apropos ffirst)))
(is (= '(cljs.core/ffirst cljs.core/nfirst) (lumo/apropos #"[a-z]+first")))
(is (= '(cljs.core/aget) (lumo/apropos "aget"))))
(is (some #{'cljs.core/ffirst 'cljs.core/nfirst} (lumo/apropos #"[a-z]+first")))
(is (some #{'cljs.core/aget} (lumo/apropos "aget"))))

(when test-util/lumo-env?
(deftest test-cli-args
Expand Down

0 comments on commit a7ae700

Please sign in to comment.