I'm curious what the story round mixing tests and tasks is. I tried doing a simple Stdout.line "" == Stdout.line ""
, and the compiler says that tasks don't implement the Eq
ability. This doesn't surprise me, since Task
s probably use functions, which also don't implement Eq
. Is there a way to assert against these kinds of managed effects? It would be nice to be able to pass the entire main
function into a test, and drive functionality that way, TDD style.
I tried looking for other zulip streams or things on the website, but couldn't find anything.
We have some plans around simulation tests and things of those nature but nothing exists currently
If you checkout the module params proposal there is some discussion in there for how it might work. I've made a summary in case it helps
https://github.com/lukewilliamboswell/roc-awesome?tab=readme-ov-file#language-changes-
Last updated: Jul 05 2025 at 12:14 UTC