From c1310c6a93d99cdfb3762f642f5cb44af1e3a5a4 Mon Sep 17 00:00:00 2001 From: Jesse Bannon Date: Fri, 23 Jan 2026 15:31:23 -0800 Subject: [PATCH] restore test --- tests/unit/utils/test_script_utils.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/unit/utils/test_script_utils.py b/tests/unit/utils/test_script_utils.py index cbf42790..608066b5 100644 --- a/tests/unit/utils/test_script_utils.py +++ b/tests/unit/utils/test_script_utils.py @@ -42,6 +42,25 @@ class TestScriptUtils: output = single_variable_output(ScriptUtils.to_script(json_dict)) assert output == expected_output + @pytest.mark.parametrize( + "input_str, expected_output", + [ + ("", False), + ("true", True), + ("false", False), + ("[ ]", False), + ("{ }", False), + ("True", True), + ("False", False), + ("lol not False", True), + ("0", False), + ("-1", True), + ("1", True), + ], + ) + def test_bool_formatter_output(self, input_str: str, expected_output: bool): + assert ScriptUtils.bool_formatter_output(input_str) == expected_output + def test_to_syntax_tree(self): out = ScriptUtils.to_native_script( {