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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user