1
0
forked from alex-eg/sex

tidy what the fixes wrote around existing helpers

written-type? matches the shapes instead of measuring them, array-form?
and pub-form? replace their spelled-out copies, both test files share
one fails-with?, and moved test comments are back above their groups.
This commit is contained in:
2026-10-19 18:21:14 +03:00
parent a4880f1b96
commit 540f5c75cd
5 changed files with 23 additions and 27 deletions

View File

@@ -5,7 +5,7 @@
;;; is checked here is what the compiler refuses, and that it refuses
;;; it with the name of whatever is wrong.
;;;
;;; `sex->c', `read-source', `failure-message', `emits?', `reports?'
;;; `sex->c', `read-source', `fails-with?', `emits?', `reports?'
;;; and `in-fn' come from codegen.scm, which run.scm includes first.
(import sex-modules)
@@ -16,8 +16,7 @@ ahead of its pub forms."
(check-public-interface (read-source source)))
(define (interface-reports? source fragment)
(let ((m (failure-message (lambda () (interface-of source)))))
(and m (string-contains m fragment) #t)))
(fails-with? (lambda () (interface-of source)) fragment))
(define (ops-src . body)
(string-append