From ede85ad60bb1457ac011dfe71090b221ea1a4cb4 Mon Sep 17 00:00:00 2001 From: Jack Firth Date: Mon, 28 Mar 2022 15:49:54 -0700 Subject: [PATCH] Fix parse error tests They were broken because changing the language name from `brag` to `yaragg` changed the source positions of some error messages. --- tests/test-errors.rkt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test-errors.rkt b/tests/test-errors.rkt index 3967172..bf3f85c 100755 --- a/tests/test-errors.rkt +++ b/tests/test-errors.rkt @@ -42,13 +42,13 @@ "The grammar does not appear to have any rules") (check-compile-error (format "~a\nfoo" lang-line) - "Error while parsing grammar near: foo [line=2, column=0, position=12]") + "Error while parsing grammar near: foo [line=2, column=0, position=14]") (check-compile-error (format "~a\nnumber : 42" lang-line) - "Error while parsing grammar near: 42 [line=2, column=9, position=21]") + "Error while parsing grammar near: 42 [line=2, column=9, position=23]") (check-compile-error (format "~a\nnumber : 1" lang-line) - "Error while parsing grammar near: 1 [line=2, column=9, position=21]") + "Error while parsing grammar near: 1 [line=2, column=9, position=23]")