find the conditional by tokens a path cannot hold

"holds no directive" searched for 123, a digit run the temporary
directory in every #line could hold too.
This commit is contained in:
2026-10-27 22:41:06 +03:00
parent a2bbb73524
commit d890080103

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
;; directive between `?' and `:' does not compile
(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"
(let ((start (string-contains c-out "123")))
(not (string-contains (substring c-out start (string-contains c-out "125" start))
(let ((start (string-contains c-out "mvar < 123")))
(not (string-contains (substring c-out start (string-contains c-out ": 125" start))
"#line")))))
;; A location is (file . line); every directive must name the file the