Closed n-osborne closed 1 month ago
The generated code doesn't tell the runtime when a returned value could have been an exception.
Back in the days, I used (string, res) either
type to encode whether it is an exception or a value, but in fact, we need three cases:
And then adapt pp_expected
accordingly
To reproduce add the following declaration to
plugins/qcheck-stm/test/array.ml
:dune build @launchtests
will give you something like:We would have expected: