1
0
forked from alex-eg/sex

test the writer on the C it writes

The walk-* tests pinned the forms handed to fmt-c, which were right
while the C they became lost a const; spelled as C, they check what fmt-c
makes of them too. The cases no source can reach, an atom no form holds
and a name the reader takes for a negation, go.
This commit is contained in:
2026-10-20 11:56:02 +03:00
parent 13d20a102d
commit bf8ba2f9fd
5 changed files with 127 additions and 254 deletions

View File

@@ -1,10 +1,6 @@
;;; Codegen details that are easy to get subtly wrong, and that the
;;; walk-* unit tests cannot see: they check the intermediate form we
;;; hand to fmt-c, not the C that fmt-c renders from it.
;;;
;;; Both cases below were found by writing an OpenGL example, not by
;;; the existing suite, because both need an operand shape that no
;;; earlier test program happened to use.
;;; Codegen details that are easy to get subtly wrong: precedence,
;;; scopes, comments in odd places, and the shapes no earlier test
;;; program happened to use.
(import srfi-13)