Skip to content

Commit

Permalink
Improve provability tests
Browse files Browse the repository at this point in the history
Ref. #1131
  • Loading branch information
treiher committed Aug 23, 2022
1 parent e76bb86 commit 1297ed5
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ def run(command: Sequence[str]) -> None:
gnatprove = ["gnatprove", "-Ptest"]

if units:
for unit in units:
run([*gnatprove, "-u", unit])
args = [arg for unit in units for arg in ["-u", unit]]
run([*gnatprove, *args])
else:
run(gnatprove)

Expand Down Expand Up @@ -494,26 +494,6 @@ def session_main(
),
],
[
ada.IfStatement(
[
(
ada.Equal(ada.Variable("Size"), ada.Number(0)),
[
ada.CallStatement(
"Ada.Text_IO.Put_Line",
[
ada.Concatenation(
ada.String("Read "),
ada.Image("Chan"),
ada.String(": read buffer size is 0"),
)
],
),
ada.ReturnStatement(),
],
),
]
),
ada.IfStatement(
[
(
Expand Down

0 comments on commit 1297ed5

Please sign in to comment.