If a procedure calls a dependency three times, each with different values and each expecting a different result, then the mocked dependency's behavior needs to return different values. A simple procedure like (const-series a b c) that returns a the first time it's called, b the second , c the third, and raises an exception afterwards would be suitable here.
If a procedure calls a dependency three times, each with different values and each expecting a different result, then the mocked dependency's behavior needs to return different values. A simple procedure like
(const-series a b c)
that returnsa
the first time it's called,b
the second ,c
the third, and raises an exception afterwards would be suitable here.