From d8900801031d10b187fb2bc248ab1ad778c645c2 Mon Sep 17 00:00:00 2001 From: alex-eg Date: Tue, 27 Oct 2026 22:41:06 +0300 Subject: [PATCH] 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. --- tests/line-directives.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/line-directives.scm b/tests/line-directives.scm index 877b56b..c067543 100644 --- a/tests/line-directives.scm +++ b/tests/line-directives.scm @@ -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