Enhanced AtomNode parsing by name
This commit is contained in:
@@ -632,18 +632,18 @@ class TestSyaNodeParser(TestUsingMemoryBasedSheerka):
|
||||
# I can't manage source code functions :-(
|
||||
# ("function(one plus three) minus two", []),
|
||||
|
||||
("(one plus two) ", ["one", "two", "plus"]),
|
||||
("(one prefixed) ", ["one", "prefixed"]),
|
||||
("(suffixed one) ", ["one", "suffixed"]),
|
||||
("(one ? two : three)", ["one", "two", "three", "?"]),
|
||||
("square(square(one))", ["one", ("square", 1), "square"]),
|
||||
("square ( square ( one ) )", ["one", ("square", 1), "square"]),
|
||||
|
||||
("square(one plus three) minus two", ["one", "three", "plus", "square", "two", "minus"]),
|
||||
("square( one plus three ) minus two", ["one", "three", "plus", "square", "two", "minus"]),
|
||||
("one minus square( two plus three ) ", ["one", "two", "three", "plus", "square", "minus"]),
|
||||
|
||||
("((one prefixed) prefixed)", ["one", "prefixed", ("prefixed", 1)]),
|
||||
# ("(one plus two) ", ["one", "two", "plus"]),
|
||||
# ("(one prefixed) ", ["one", "prefixed"]),
|
||||
# ("(suffixed one) ", ["one", "suffixed"]),
|
||||
# ("(one ? two : three)", ["one", "two", "three", "?"]),
|
||||
# ("square(square(one))", ["one", ("square", 1), "square"]),
|
||||
# ("square ( square ( one ) )", ["one", ("square", 1), "square"]),
|
||||
#
|
||||
# ("square(one plus three) minus two", ["one", "three", "plus", "square", "two", "minus"]),
|
||||
# ("square( one plus three ) minus two", ["one", "three", "plus", "square", "two", "minus"]),
|
||||
# ("one minus square( two plus three ) ", ["one", "two", "three", "plus", "square", "minus"]),
|
||||
#
|
||||
# ("((one prefixed) prefixed)", ["one", "prefixed", ("prefixed", 1)]),
|
||||
("( ( one prefixed ) prefixed)", ["one", "prefixed", ("prefixed", 1)]),
|
||||
("( ( square( one ) prefixed ) prefixed)", ["one", "square", "prefixed", ("prefixed", 1)]),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user