-
Notifications
You must be signed in to change notification settings - Fork 128
Closed
Labels
test-frameworkFor issues related to Cryptol's test framework.For issues related to Cryptol's test framework.
Milestone
Description
There are lots of exercises/examples in Programming Cryptol like this one:
Cryptol> take`{3} (12:[12])
0
Cryptol> drop`{3} (12:[12])
12
Cryptol> split`{3} (12:[12])
[0, 0, 12]
Cryptol> groupBy`{3} (12:[12])
[0, 0, 1, 4]
Right now, the exercise checker can't handle this -- it only handles lines of input and expected output, but this mixes the two together. It would be pretty simple to handle this, by adding a new mode to the checker that looks for input and output at the same time, and distinguishes between the two by whether the line starts with Cryptol>.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
test-frameworkFor issues related to Cryptol's test framework.For issues related to Cryptol's test framework.