ExactConceptParser can now recognize concepts by their names
This commit is contained in:
@@ -137,8 +137,8 @@ class TestPythonEvaluator(TestUsingMemoryBasedSheerka):
|
||||
|
||||
def test_i_can_call_function_with_complex_concepts(self):
|
||||
sheerka, context, plus, mult = self.init_concepts(
|
||||
self.def_concept("plus", "a plus b", ["a", "b"]),
|
||||
self.def_concept("mult", "a mult b", ["a", "b"]),
|
||||
self.from_def_concept("plus", "a plus b", ["a", "b"]),
|
||||
self.from_def_concept("mult", "a mult b", ["a", "b"]),
|
||||
)
|
||||
|
||||
parsed = PythonParser().parse(context, "is_greater_than(BuiltinConcepts.PRECEDENCE, mult, plus)")
|
||||
|
||||
Reference in New Issue
Block a user