From f73e386b82c131d1393043c4e709d8132b245303 Mon Sep 17 00:00:00 2001 From: Maximilien Rigaut Date: Sat, 19 Mar 2022 19:55:38 +0100 Subject: [PATCH] Corrected one optional test --- tests/modules/test_syntax.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/modules/test_syntax.py b/tests/modules/test_syntax.py index 3017c55..c8471c7 100644 --- a/tests/modules/test_syntax.py +++ b/tests/modules/test_syntax.py @@ -323,7 +323,11 @@ dict_advanced_syntax_input_and_expected_output = { sy.TableCellToken(["Text1 "]), sy.TableCellToken(["Text2 "]), ]), - sy.OptionalToken(["{", "var='test'", "number=11", "}"]), + sy.OptionalToken([ + sy.OptionalInsertToken([ + "var='test', number=11", + ]), + ]), ), __GL(), __XF), # Bad optional implementation ],