Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug in dumpableType function. Fixes #946. #947

Merged
merged 2 commits into from
Nov 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ cryptol-2.*
# ignore test suite output
/bin
/output
/tests/regression/*.out
2 changes: 1 addition & 1 deletion src/Cryptol/Testing/Random.hs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ dumpableType ty =
case tIsFun ty of
Just (t1, t2) ->
do g <- randomValue Concrete t1
as <- testableTypeGenerators t2
as <- dumpableType t2
return (g : as)
Nothing ->
do (_ :: Gen g Concrete) <- randomValue Concrete ty
Expand Down
2 changes: 2 additions & 0 deletions tests/regression/dumptests.cry
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
add32 : [32] -> [32] -> [32]
add32 x y = x + y
3 changes: 3 additions & 0 deletions tests/regression/dumptests.icry
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
:set tests=100
:l dumptests.cry
:dumptests add32.out add32
3 changes: 3 additions & 0 deletions tests/regression/dumptests.icry.stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Loading module Cryptol
Loading module Cryptol
Loading module Main