by bugarela · 2y ago · 0 comments
For example, you can ask Quint to generate a bunch of traces (executions) for you in JSON and then parse those to run tests in the implementation. If your trace is [{action: deposit(10), result: ok}, {action: withdraw(20), result: Error}], you can have an sort of integration test for your implementation that asserts that calling deposit(10) should result in ok and then calling withdraw(20) subsequently should result in an error.
There is one example for this as a Rust test: https://github.com/informalsystems/quint-sandbox/blob/main/S...
No comments yet.