Correct the test case so it executes the error path we want.
This commit is contained in:
parent
7146289c34
commit
ab3c69ceaa
|
@ -47,7 +47,7 @@
|
||||||
(define-lex-abbrev a b)
|
(define-lex-abbrev a b)
|
||||||
(define-lex-abbrev b a)
|
(define-lex-abbrev b a)
|
||||||
(let ()
|
(let ()
|
||||||
(lexer ((a) 1))))))
|
(lexer (a 1))))))
|
||||||
|
|
||||||
(check-regexp-match #rx"regular-expression"
|
(check-regexp-match #rx"regular-expression"
|
||||||
(catch-syn-error
|
(catch-syn-error
|
||||||
|
@ -55,7 +55,7 @@
|
||||||
(define-lex-abbrev a (repetition 0 1 b))
|
(define-lex-abbrev a (repetition 0 1 b))
|
||||||
(define-lex-abbrev b (repetition 0 1 a))
|
(define-lex-abbrev b (repetition 0 1 a))
|
||||||
(let ()
|
(let ()
|
||||||
(lexer ((a) 1))))))
|
(lexer (a 1))))))
|
||||||
|
|
||||||
;; Detecting cycle within same abbreviation:
|
;; Detecting cycle within same abbreviation:
|
||||||
(check-regexp-match #rx"regular-expression"
|
(check-regexp-match #rx"regular-expression"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user