Implemented a first and basic version of a Rete rule engine
This commit is contained in:
@@ -87,6 +87,6 @@ class TestLexerNodeEvaluator(TestUsingMemoryBasedSheerka):
|
||||
assert context.sheerka.isinstance(wrapper, BuiltinConcepts.PARSER_RESULT)
|
||||
assert wrapper.source == "foo + 1"
|
||||
|
||||
assert return_value == PythonNode('foo + 1', ast.parse("__C__foo__C__ + 1", mode="eval"))
|
||||
assert return_value == PythonNode('__C__foo__C__ + 1', ast.parse("__C__foo__C__ + 1", mode="eval"), "foo + 1")
|
||||
assert return_value.objects == {"__C__foo__C__": foo}
|
||||
assert result.parents == [ret_val]
|
||||
|
||||
Reference in New Issue
Block a user