emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/parser-generator 8328ab3 130/434: Added unit test for f


From: ELPA Syncer
Subject: [elpa] externals/parser-generator 8328ab3 130/434: Added unit test for failing LRk Grammar Parse
Date: Mon, 29 Nov 2021 15:59:25 -0500 (EST)

branch: externals/parser-generator
commit 8328ab3bd513a8c355fdba276984531055a712e0
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>

    Added unit test for failing LRk Grammar Parse
---
 parser-generator-lr.el           | 5 ++++-
 test/parser-generator-lr-test.el | 3 +++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/parser-generator-lr.el b/parser-generator-lr.el
index 1b3b4c8..91a8e17 100644
--- a/parser-generator-lr.el
+++ b/parser-generator-lr.el
@@ -554,7 +554,10 @@
                         "Invalid syntax! Expected one of %s found %s at 
input-tape-index %s"
                         possible-look-aheads
                         look-ahead
-                        input-tape-index)))
+                        input-tape-index)
+                       possible-look-aheads
+                       look-ahead
+                       input-tape-index))
 
               (cond
 
diff --git a/test/parser-generator-lr-test.el b/test/parser-generator-lr-test.el
index 37b4de8..ac3d441 100644
--- a/test/parser-generator-lr-test.el
+++ b/test/parser-generator-lr-test.el
@@ -229,6 +229,9 @@
     '(2 2 2 1 1)
     (parser-generator-lr--parse '(a a b b))))
 
+  (should-error
+   (parser-generator-lr--parse '(a a b b b)))
+
   (message "Passed tests for (parser-generator-lr--parse)"))
 
 (defun parser-generator-lr-test ()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]