Fixed some bugs

This commit is contained in:
2020-07-05 20:19:19 +02:00
parent 71f753c925
commit 56e1cb4587
13 changed files with 67 additions and 43 deletions
+2 -3
View File
@@ -608,7 +608,7 @@ class TestBnfNodeParser(TestUsingMemoryBasedSheerka):
"foo": concept_foo
}
def test_i_can_use_context_reference_with_multiple_levels(self):
def test_i_can_manage_concepts_reference_when_multiple_levels(self):
my_map = {
"foo": self.bnf_concept("foo", Sequence(StrMatch("one"), StrMatch("two"))),
"bar": self.bnf_concept("bar", ConceptExpression("foo")),
@@ -639,8 +639,7 @@ class TestBnfNodeParser(TestUsingMemoryBasedSheerka):
assert concept_baz.body == BuiltinConcepts.NOT_INITIALIZED
assert concept_baz.compiled == {
ConceptParts.BODY: concept_bar,
"bar": concept_bar,
"foo": concept_foo,
"bar": concept_bar
}
def test_i_can_mix_reference_to_other_concepts(self):