From 0cf26ed10f2563ea6721590ddbd5cccc7fa502b1 Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Tue, 7 Sep 2021 01:02:22 +0900 Subject: Call the 'MissError' when input doesn't meet an error production --- driver/semantic_action_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'driver/semantic_action_test.go') diff --git a/driver/semantic_action_test.go b/driver/semantic_action_test.go index ef92d92..c3f8943 100644 --- a/driver/semantic_action_test.go +++ b/driver/semantic_action_test.go @@ -147,12 +147,14 @@ char: "[a-z]"; }, }, { - caption: "the driver doesn't call `Accept` when a syntax error is trapped, but the input doesn't meet the error production", + caption: "when the input doesn't meet the error production, the driver calls `MissError`.", specSrc: specSrcWithErrorProd, src: `a !`, actLog: []string{ "shift/char", "trap/1/shift/error", + + "miss", }, }, { -- cgit v1.2.3