restore test

This commit is contained in:
Jesse Bannon 2026-01-23 15:31:23 -08:00
parent ea82ff111a
commit c1310c6a93

View file

@ -42,6 +42,25 @@ class TestScriptUtils:
output = single_variable_output(ScriptUtils.to_script(json_dict)) output = single_variable_output(ScriptUtils.to_script(json_dict))
assert output == expected_output 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): def test_to_syntax_tree(self):
out = ScriptUtils.to_native_script( out = ScriptUtils.to_native_script(
{ {