-
Notifications
You must be signed in to change notification settings - Fork 126
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
:dumptests
doesn't print one test case per line
#1314
Comments
Bisection shows that PR #1263 is where the problem originates. |
The problem is in the definition of the cryptol/src/Cryptol/Utils/PP.hs Lines 141 to 142 in 07c689a
The layoutCompact style in prettyprinter doesn't do single-line layouts; it just skips indentation. We'll need to implement this another way.
|
I think maybe we can implement this by writing a custom rendering function that never emits any newlines. It should be easier than changing the pretty printing library. |
It would probably be worth asking the |
Potentially useful example: https://hackage.haskell.org/package/silkscreen-0.0.0.4 |
Fixed in #1759. |
The REPL documentation for
:? :dumptests
suggests that "each line" of the resulting file should contain the inputs and expected output for one random test. However, since version 2.12.0, values of larger types (arrays or records) are pretty-printed with lots of extra line breaks, so each test case covers many lines. For example:This produces the following 12-line file:
The text was updated successfully, but these errors were encountered: