mirror of
https://github.com/Smaug123/WoofWare.PawPrint
synced 2025-10-08 07:28:40 +00:00
24 lines
750 B
Forth
24 lines
750 B
Forth
namespace WoofWare.PawPrint.Test
|
||
|
||
open WoofWare.PawPrint
|
||
|
||
/// Result of executing (some steps of) the program under PawPrint.
|
||
type RunResult =
|
||
{
|
||
/// Value that was left on the evaluation stack when execution stopped, **if**
|
||
/// the program executed a `ret` that produced a value and PawPrint
|
||
/// subsequently pushed it onto the stack. This is only an early-stage
|
||
/// approximation: once PawPrint supports a proper process-exit story we
|
||
/// can promote this to a real exit–code.
|
||
ExitCode : int option
|
||
|
||
/// Final interpreter state after we stopped executing.
|
||
FinalState : IlMachineState
|
||
}
|
||
|
||
type TestCase =
|
||
{
|
||
FileName : string
|
||
ExpectedReturnCode : int
|
||
}
|