Skip to content

Commit

Permalink
test failures in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jbouwman committed Oct 24, 2024
1 parent 3d35117 commit ec91a77
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 45 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: ${{matrix.lisp}} on ${{matrix.os}}
strategy:
matrix:
lisp: [allegro, ccl-bin, sbcl-bin]
lisp: [sbcl-bin] # only one cool lisp
os: [ubuntu-latest]
fail-fast: false
runs-on: ${{matrix.os}}
Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Run unit tests, failing on the first error

.PHONY: test
test:
sbcl --noinform --non-interactive \
Expand Down
1 change: 1 addition & 0 deletions coalton-mode.asd
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
:serial t
:components ((:file "package")
(:file "mock")
(:file "json-tests")
(:file "lsp-tests")
(:file "message-tests")
(:file "protocol-tests")
Expand Down
45 changes: 1 addition & 44 deletions tests/json-tests.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -4,47 +4,4 @@

(is (equalp (cm::decode-json
"{\"key\": \"value\"}")
'(("key" . "value"))))
(is (equalp (cm::decode-json
"{\"key\": [\"value\"]}")
'(("key" . #("value")))))
(is (equalp (cm::decode-json
"{\"key\": [{\"key\": \"value\"}]}")
'(("key" . ((("key" . "value")))))))

(is (equalp (cm::decode-json
(cm::to-json
(cm::make-diagnostic 5 4 5 8
"'x' is undefined"
"undefined-export")))
'(("range"
("start"
("line" . 5)
("character" . 4))
("end"
("line" . 5)
("character" . 8)))
("severity" . 2)
("code" . "undefined-export")
("source" . "coalton")
("message" . "'x' is undefined"))))

(is (equalp (cm::decode-json
(cm::to-json
(mock-publish-diagnostics)))
'(("jsonrpc" . "2.0")
("method" . "textDocument/publishDiagnostics")
("params"
("uri" . "file:///Users/jbouwman/git/coalton-mode/resources/fib.coal")
("diagnostics"
(("range"
("start"
("line" . 5)
("character" . 4))
("end"
("line" . 5)
("character" . 8)))
("severity" . 2)
("code" . "undefined-export")
("source" . "coalton")
("message" . "export: 'fiib' is undefined"))))))))
'(("key" . "valuezorkxS!")))))

0 comments on commit ec91a77

Please sign in to comment.