-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for tuples as return values
This adds functionality to test functions which return tuples. This is conceptually different from having tuples in argument positions as we need to extend the STM.ty type and provide a constructor so that Res values can be created for it.
- Loading branch information
1 parent
d4c8ee3
commit 5bda4dd
Showing
7 changed files
with
229 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
File "tuples.mli", line 25, characters 29-38: | ||
File "tuples.mli", line 25, characters 0-141: | ||
25 | val size_tup : ('a, 'b) t -> int * int | ||
^^^^^^^^^ | ||
Warning: Skipping size_tup: functions returning tuples are not supported yet. | ||
26 | (*@ x, y = size_tup t | ||
27 | ensures x = List.length t.contents | ||
28 | ensures y = List.length t.contents *) | ||
Warning: Incomplete computation of the returned value in the specification of size_tup. Failure message won't be able to display the expected returned value. |
Oops, something went wrong.