update unit test
This commit is contained in:
parent
639546d80c
commit
b4a2b94308
1 changed files with 2 additions and 1 deletions
|
|
@ -16,6 +16,7 @@ from ytdl_sub.script.types.resolvable import Float
|
|||
from ytdl_sub.script.types.resolvable import Integer
|
||||
from ytdl_sub.script.types.resolvable import Lambda
|
||||
from ytdl_sub.script.types.resolvable import String
|
||||
from ytdl_sub.script.types.syntax_tree import ResolvedSyntaxTree
|
||||
from ytdl_sub.script.types.syntax_tree import SyntaxTree
|
||||
from ytdl_sub.script.types.variable import Variable
|
||||
from ytdl_sub.script.utils.exceptions import InvalidSyntaxException
|
||||
|
|
@ -24,7 +25,7 @@ from ytdl_sub.script.utils.exceptions import InvalidSyntaxException
|
|||
class TestParser:
|
||||
def test_simple(self):
|
||||
parsed = parse("hello world")
|
||||
assert parsed == SyntaxTree([String(value="hello world")])
|
||||
assert parsed == ResolvedSyntaxTree([String(value="hello world")])
|
||||
assert parsed.variables == set()
|
||||
|
||||
def test_single_function_one_arg(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue