From 18ce7bc02b0c094451eb106731e12b59f0ca8929 Mon Sep 17 00:00:00 2001 From: Travis Briggs Date: Sun, 9 Oct 2022 09:29:48 -0700 Subject: [PATCH] Better demonstrate _MAX_NESTING --- evennia/utils/tests/test_funcparser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evennia/utils/tests/test_funcparser.py b/evennia/utils/tests/test_funcparser.py index 48a3d55f74..7391b97674 100644 --- a/evennia/utils/tests/test_funcparser.py +++ b/evennia/utils/tests/test_funcparser.py @@ -262,12 +262,12 @@ class TestFuncParser(TestCase): _MAX_NESTING value, which means you can nest 4 values with a value of 2, as demonstrated by this test. """ - string = "$add(1, $add(1, $add(1, $add(1, $toint(42)))))" + string = "$add(1, $add(1, $add(1, $toint(42))))" ret = self.parser.parse(string) # TODO: Does this return value actually make sense? # It removed the spaces from the calls. - self.assertEqual("$add(1,$add(1,$add(1,$add(1,$toint(42)))))", ret) + self.assertEqual("$add(1,$add(1,$add(1,$toint(42))))", ret) with self.assertRaises(funcparser.ParsingError): self.parser.parse(string, raise_errors=True)