id_effect 0.2.0

Effect<A, E, R> (sync + async), context/layers, pipe — interpreter-style, no bundled executor
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Ex 097 — `run_test` returns `Exit` and runs harness hygiene checks.
use id_effect::{Exit, fail, run_test, succeed};

fn main() {
  assert_eq!(
    run_test(succeed::<u16, (), ()>(42_u16), ()),
    Exit::succeed(42)
  );
  assert_eq!(
    run_test(fail::<(), &'static str, ()>("no"), ()),
    Exit::fail("no")
  );
  println!("097_run_test ok");
}