lunatic-solutions / lunatic

Lunatic is an Erlang-inspired runtime for WebAssembly
https://lunatic.solutions
Apache License 2.0
4.62k stars 138 forks source link

Allow tests to return Result #143

Closed tqwewe closed 1 year ago

tqwewe commented 2 years ago

Normal tests in Rust allow you to return Result<T, E> which lets you use ?.

This feature would be nice to have with #[lunatic::test]s. Currently, returning a Result from a test causes it to fail.

bkolobara commented 1 year ago

Is fixed in https://github.com/lunatic-solutions/lunatic-rs/commit/7ff7c2379bd53e20092ecd6e8aca57b495c2a6ef

tqwewe commented 1 year ago

Amazing! :tada: