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

Test runner - wrong type for test #125

Open
aboeglin opened this issue Aug 13, 2023 · 0 comments
Open

Test runner - wrong type for test #125

aboeglin opened this issue Aug 13, 2023 · 0 comments

Comments

@aboeglin
Copy link
Contributor

Symptoms:

  1. What did you expect to happen?
    When running tests and the top level test is not of the right type and/or calling test(..), the compiler should report an error.

  2. What actually happened?
    It tried to compile but then monomorphization got wasn't processing that and some dependencies were not resolved. Example:

pipe(
  Ap.liftA2(
    (input, output) => List.zip(cleanLines(input), cleanLines(output)),
    read("./corpus-output.txt"),
  ),
  map(
    map(where { #[input, output] => test(`stemmer: ${input}`, () => assertEquals(output, input)) }),
  ),
  Wish.fulfill(traceDrop("Something broke"), traceDrop("tests generated!")),
)(read("./corpus-input.txt"))

from here: https://github.com/brekk/mad-english/blob/8926883a3150bd64609b8a0d06c9dec427f81bf8/src/Integration.spec.mad#L26

Reproduction instructions

  1. madlib test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant