Skip to content

Commit

Permalink
Fixed test annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoeilers committed Aug 22, 2023
1 parent 90d9422 commit 0af0a45
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
7 changes: 0 additions & 7 deletions tests/functional/verification/issues/00024.py

This file was deleted.

8 changes: 4 additions & 4 deletions tests/functional/verification/issues/00074.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@

class Super:

#:: Label(L1)
def foo(self, *args: Tuple[int]) -> int:
Requires(len(args) > 3)
#:: ExpectedOutput(postcondition.violated:assertion.false,L1)
Ensures(Result() > 2)
return 5

#:: Label(L2)
def bar(self, **kwargs: Dict[str, int]) -> int:
Requires(len(kwargs) > 3)
#:: ExpectedOutput(postcondition.violated:assertion.false,L2)
Ensures(Result() > 2)
return 5

Expand All @@ -35,14 +35,14 @@ def bar(self, **kwargs: Dict[str, int]) -> int:

class Sub2(Super):

#:: Label(L1)
def foo(self, *args: Tuple[int]) -> int:
Requires(len(args) > 2)
#:: ExpectedOutput(postcondition.violated:assertion.false,L1)
Ensures(Result() > 0)
return 5

#:: Label(L2)
def bar(self, **kwargs: Dict[str, int]) -> int:
Requires(len(kwargs) > 2)
#:: ExpectedOutput(postcondition.violated:assertion.false,L2)
Ensures(Result() > 0)
return 5
2 changes: 1 addition & 1 deletion tests/functional/verification/issues/00150.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def can_node_be_compressed(marked_execution_tree: 'Node') -> int:
Requires(Forall(int, lambda i: Implies(i >= 0 and i < len(marked_execution_tree.children),
Acc(marked_execution_tree.children[i].function_name))))
Requires(Acc(marked_execution_tree.function_name))
#:: ExpectedOutput(postcondition.violdated:assertion.false)
#:: ExpectedOutput(postcondition.violated:assertion.false)
Ensures(Implies(len(marked_execution_tree.children) != 1, Result() == 0))
Ensures(Result() == 0)
if len(marked_execution_tree.children) != 1:
Expand Down

0 comments on commit 0af0a45

Please sign in to comment.