Skip to content

Commit

Permalink
Add regression tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yitzchak committed Feb 29, 2024
1 parent d54de26 commit 11e2eb2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ jobs:
strategy:
matrix:
lisp:
- abcl
- clasp
- cmucl
- abcl
- sbcl
fail-fast: false
runs-on: ubuntu-latest
container:
Expand All @@ -41,7 +42,10 @@ jobs:
run: |
make-rc
asdf-add
- name: Run Shim Tests
- name: Run Regression Tests
run: |
lisp -i ${{ matrix.lisp }} -e "(ql:quickload :inravina/test)" -e "(asdf:test-system :inravina)" -q
- name: Run ANSI Tests
run: |
lisp -i ${{ matrix.lisp }} -e "(ql:quickload :inravina-extrinsic/test)" -e "(inravina-extrinsic/test:ansi-test :exit t)"
19 changes: 10 additions & 9 deletions code/test/pprint-indent.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ ZB
ZC[D
Z E
ZF]"
(inravina:pprint-logical-block (*client stream nil :per-line-prefix "Z")
(write-string "A " stream)
(inravina:pprint-newline *client stream :mandatory)
(write-string "B
(with-env (stream)
(inravina:pprint-logical-block (*client* stream nil :per-line-prefix "Z")
(write-string "A " stream)
(inravina:pprint-newline *client* stream :mandatory)
(write-string "B
C" stream)
(inravina:pprint-logical-block (*client stream nil :prefix "[" :suffix "]")
(write-string "D " stream)
(inravina:pprint-newline *client stream :mandatory)
(write-string "E
F" stream)))))
(inravina:pprint-logical-block (*client* stream nil :prefix "[" :suffix "]")
(write-string "D " stream)
(inravina:pprint-newline *client* stream :mandatory)
(write-string "E
F" stream))))))
6 changes: 3 additions & 3 deletions inravina.asd
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
:description "Test suite for Inravina"
:author "Tarn W. Burton"
:license "MIT"
:depends-on
("alexandria"
"parachute")
:depends-on ("alexandria"
"inravina"
"parachute")
:perform (asdf:test-op (op c) (uiop:symbol-call :parachute :test :inravina/test))
:components ((:module code
:components ((:module test
Expand Down

0 comments on commit 11e2eb2

Please sign in to comment.