Fixed #125: SheerkaErrorManager

Fixed #135: Change services service priorities
Fixed #136: ErrorManager: Implement recognize_error
Fixed #137: BNFNodeParser : Error when parsing regex with sub parsers
Fixed #138: get_last_errors(): real errors sources are lost
Fixed #139: OneError return value removes the origin of the error
Fixed #140: Concept variables are not correctly handled when parsing sub expression
Fixed #143: Implement has_unknown_concepts()
This commit is contained in:
2021-10-28 14:04:41 +02:00
parent 48ab72fd9c
commit 87cab44fb8
56 changed files with 1391 additions and 1286 deletions
+7 -3
View File
@@ -21,7 +21,9 @@ class TestSheerkaHistoryManager(TestUsingFileBasedSheerka):
sheerka.evaluate_user_input("five")
h = list(service.history(-1)) # all
assert h == [
transformed_h = [hist(item.event.message, item.status) for item in h]
assert transformed_h == [
hist("five", True),
hist("def concept five as 5", True),
hist("four", True),
@@ -37,13 +39,15 @@ class TestSheerkaHistoryManager(TestUsingFileBasedSheerka):
]
h = list(service.history(2))
assert h == [
transformed_h = [hist(item.event.message, item.status) for item in h]
assert transformed_h == [
hist("five", True),
hist("def concept five as 5", True)
]
h = list(service.history(2, 2))
assert h == [
transformed_h = [hist(item.event.message, item.status) for item in h]
assert transformed_h == [
hist("four", True),
hist("def concept four as 4", True),
]