restore test
This commit is contained in:
parent
ea82ff111a
commit
c1310c6a93
1 changed files with 19 additions and 0 deletions
|
|
@ -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(
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue