Skip to content

Add specs to analyzer, add spec based tests #238

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 42 commits into from
Nov 21, 2024
Merged
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
1f8da01
(wip)
swannodette Oct 23, 2024
6087f8e
(wip)
swannodette Oct 23, 2024
56a6721
* typos
swannodette Oct 23, 2024
8d8a55a
* rest of the bits from the ast-ref
swannodette Oct 23, 2024
b28addc
* add spec tests ns
swannodette Oct 24, 2024
2009627
* fix assertion, another one
swannodette Oct 24, 2024
9f988d8
* add basic do
swannodette Oct 24, 2024
2a8db4d
* :binding missing :form
swannodette Oct 25, 2024
fd5b19f
* :binding :shadow can be nil
swannodette Oct 25, 2024
45bc823
* :case-node is synthetic - no :form
swannodette Oct 25, 2024
68e120f
* add tests for new
swannodette Oct 25, 2024
2bd179a
* add test-throw
swannodette Oct 25, 2024
83dadc9
* some :binding node missing :env and :form
swannodette Oct 25, 2024
55c8b12
* const tests
swannodette Oct 25, 2024
3e630af
* check the :op
swannodette Oct 25, 2024
2cc8c5c
* remove unneeded warnings
swannodette Oct 29, 2024
d0ece88
* add deftype
swannodette Nov 1, 2024
3bf3b4e
* host field & call
swannodette Nov 1, 2024
8822838
* add invoke
swannodette Nov 1, 2024
ac8b0de
* ::node not ::nodes, fixes stackoverflow
swannodette Nov 1, 2024
6a353c3
* add missing :js spec
swannodette Nov 1, 2024
69c0f84
* alphabetize specs
swannodette Nov 15, 2024
fb836ea
* alphabetize tests
swannodette Nov 15, 2024
2c92f31
* :binding
swannodette Nov 15, 2024
66487bb
* :op :quote should be :literal? true
swannodette Nov 17, 2024
6226322
* add binding, note about list, add set, typo
swannodette Nov 17, 2024
17c79e7
* add basic :ns & :ns* specs
swannodette Nov 17, 2024
6879174
* ns* stest
swannodette Nov 17, 2024
70b16c7
* add js-array
swannodette Nov 17, 2024
4cb5d04
* test-js-var
swannodette Nov 17, 2024
5219786
* test-the-var
swannodette Nov 17, 2024
e888fae
* missing assertion
swannodette Nov 17, 2024
82efd24
* more assertions for case
swannodette Nov 18, 2024
4d7210e
* case-node, case-test, case-then
swannodette Nov 18, 2024
cf2d7fc
* fn-method
swannodette Nov 18, 2024
a91025a
* test-local
swannodette Nov 20, 2024
1ce0ca7
* test-var
swannodette Nov 20, 2024
0ad7f04
* missing information from try/catch processing, we need to add `:loc…
swannodette Nov 20, 2024
125b4a2
* clarify comment
swannodette Nov 20, 2024
867a26b
* test-js
swannodette Nov 20, 2024
7bf09f0
* :no-op only has :env & :op
swannodette Nov 20, 2024
eb1b4a6
* :js-object :keys are _not_ nodes
swannodette Nov 20, 2024
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
Prev Previous commit
Next Next commit
* :binding
  • Loading branch information
swannodette committed Nov 15, 2024
commit 2c92f31fb8e6e4d6cd6d9c794abdbbc90c4b17b9
2 changes: 2 additions & 0 deletions src/test/clojure/cljs/analyzer/spec_tests.clj
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
[clojure.test :as test :refer [deftest is]]
[clojure.spec.alpha :as s]))

;; binding

(deftest test-case
(let [node (no-warn (analyze ns-env '(case x 1 :foo 2 :bar)))]
(is (s/valid? ::a/node node))))
Expand Down
Loading