Stream: beginners

Topic: testing tasks


view this post on Zulip Trevor Settles (Mar 23 2024 at 16:43):

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 Tasks 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.

view this post on Zulip Brendan Hansknecht (Mar 23 2024 at 17:34):

We have some plans around simulation tests and things of those nature but nothing exists currently

view this post on Zulip Luke Boswell (Mar 23 2024 at 18:41):

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