more-tests-and-corner-cases #72

Merged
pkulev merged 74 commits from more-tests-and-corner-cases into main 2026-10-27 22:21:02 +01:00
Showing only changes of commit d890080103 - Show all commits

View File

@@ -231,9 +231,10 @@ after that is one more. Lines before the first directive get #f."
;; an `if' arm is a statement only where the `if' is one: a ;; an `if' arm is a statement only where the `if' is one: a
;; directive between `?' and `:' does not compile ;; directive between `?' and `:' does not compile
(maps "conditional argument" "123") (maps "conditional argument" "123")
;; a bare 123 may be a digit run of the fixture's path, in every #line
(test-assert "holds no directive" (test-assert "holds no directive"
(let ((start (string-contains c-out "123"))) (let ((start (string-contains c-out "mvar < 123")))
(not (string-contains (substring c-out start (string-contains c-out "125" start)) (not (string-contains (substring c-out start (string-contains c-out ": 125" start))
"#line"))))) "#line")))))
;; A location is (file . line); every directive must name the file the ;; A location is (file . line); every directive must name the file the