In the tutorial, I'm attempting the inline expect code example. When running roc test the response is: No expectations were found. When running roc dev I get the EXPECT FAILED in main.roc response. Are inline expects only accessible when running roc dev?
Yes, roc dev
runs the code and any expects it encounters, roc test
only runs top level expects.
Thank you @Anton. That is additional information that should be added to the Inline Expectation section of the tutorial.
A. J. Edgar Craft has marked this topic as resolved.
That is additional information that should be added to the Inline Expectation section of the tutorial.
I'll make it happen :)
I think this is a case where roc test should also catch inline expect failures
Won't execute them individually like top level expects but should fail a top level expects if the top level expect causes an inline expect to fail
Hmm, yeah, I'll check if that happens
Yes it does, I'll add that to the explanation
Last updated: Jul 06 2025 at 12:14 UTC