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 was merged in pull request #66.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user