-
Notifications
You must be signed in to change notification settings - Fork 256
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
test cases for poly #45
Comments
I'd rather call them non-trivial. The example \f n -> if True then n else (f (n+1)) is just a trimmed down version of the useful function let rec findfrom p n = if (p n) then n else (findfrom p (n+1)) I'd preserve "pathological" for cases like let c x y = if True then x else y
c(c(c(c(c(c(c(c(c c)))))))) (which always worked). |
That's fair, I'll start doing what GHC does and add a So now to test for regressions, it's just: $ poly test test/should_fail/test_if.ml For the more complicated ProtoHaskell compiler, I already use the tasty golden test runner. But it's a little heavy for these little toy language though. |
Add test cases to
test.ml
for pathological cases on pull request #40 issueThe text was updated successfully, but these errors were encountered: