testing-demo
A payment through an external provider and the kinds of test of Standard §18: assert, assert_eq, assert_fails, a fixture
(fixture … yield), mock Payments { charge(_) => fail Timeout once, then Receipt{…} }, checking calls with
Payments.calls(.charge).count, and a simulation test sim … seeds 1..=5 with a virtual clock.
oxl test examples/testing-demo
oxl test examples/testing-demo --kind sim
oxl test examples/testing-demo --seed 3 # replay one seedSee also tests in the tour and simulation.