runModuleCommand( filename: 'fac.0.wasm', name: null, line: 1, ); } public function testAssertReturn1(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'fac-rec', 'args' => [['type' => 'i64', 'value' => '25']]], expected: [['type' => 'i64', 'value' => '7034535277573963776']], line: 102, ); } public function testAssertReturn2(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'fac-iter', 'args' => [['type' => 'i64', 'value' => '25']]], expected: [['type' => 'i64', 'value' => '7034535277573963776']], line: 103, ); } public function testAssertReturn3(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'fac-rec-named', 'args' => [['type' => 'i64', 'value' => '25']]], expected: [['type' => 'i64', 'value' => '7034535277573963776']], line: 104, ); } public function testAssertReturn4(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'fac-iter-named', 'args' => [['type' => 'i64', 'value' => '25']]], expected: [['type' => 'i64', 'value' => '7034535277573963776']], line: 105, ); } public function testAssertReturn5(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'fac-opt', 'args' => [['type' => 'i64', 'value' => '25']]], expected: [['type' => 'i64', 'value' => '7034535277573963776']], line: 106, ); } public function testAssertReturn6(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'fac-ssa', 'args' => [['type' => 'i64', 'value' => '25']]], expected: [['type' => 'i64', 'value' => '7034535277573963776']], line: 107, ); } public function testAssertExhaustion7(): void { $this->runAssertExhaustionCommand( action: ['type' => 'invoke', 'field' => 'fac-rec', 'args' => [['type' => 'i64', 'value' => '1073741824']]], text: 'call stack exhausted', line: 109, ); } }