aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/src/SpecTestsuites/Core/SwitchTest.php
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-07-11 20:02:34 +0900
committernsfisis <nsfisis@gmail.com>2024-07-11 20:02:34 +0900
commitd1c268b76f65e69ea708096d5023c4d731cff594 (patch)
treee48836287272388df613a370fda7a46598c517f8 /tests/src/SpecTestsuites/Core/SwitchTest.php
parente4324d3d1d3bf3568d4e2f3b80c9cc324d324f83 (diff)
downloadphp-waddiwasi-d1c268b76f65e69ea708096d5023c4d731cff594.tar.gz
php-waddiwasi-d1c268b76f65e69ea708096d5023c4d731cff594.tar.zst
php-waddiwasi-d1c268b76f65e69ea708096d5023c4d731cff594.zip
fix: various spectests
Diffstat (limited to 'tests/src/SpecTestsuites/Core/SwitchTest.php')
-rw-r--r--tests/src/SpecTestsuites/Core/SwitchTest.php26
1 files changed, 0 insertions, 26 deletions
diff --git a/tests/src/SpecTestsuites/Core/SwitchTest.php b/tests/src/SpecTestsuites/Core/SwitchTest.php
index 4e3502f..22fa32c 100644
--- a/tests/src/SpecTestsuites/Core/SwitchTest.php
+++ b/tests/src/SpecTestsuites/Core/SwitchTest.php
@@ -23,7 +23,6 @@ final class SwitchTest extends SpecTestsuiteBase
public function testAssertReturn1(): void
{
$this->runAssertReturnCommand(
- module: null,
action: ['type' => 'invoke', 'field' => 'stmt', 'args' => [['type' => 'i32', 'value' => '0']]],
expected: [['type' => 'i32', 'value' => '0']],
line: 120,
@@ -34,7 +33,6 @@ final class SwitchTest extends SpecTestsuiteBase
public function testAssertReturn2(): void
{
$this->runAssertReturnCommand(
- module: null,
action: ['type' => 'invoke', 'field' => 'stmt', 'args' => [['type' => 'i32', 'value' => '1']]],
expected: [['type' => 'i32', 'value' => '4294967295']],
line: 121,
@@ -45,7 +43,6 @@ final class SwitchTest extends SpecTestsuiteBase
public function testAssertReturn3(): void
{
$this->runAssertReturnCommand(
- module: null,
action: ['type' => 'invoke', 'field' => 'stmt', 'args' => [['type' => 'i32', 'value' => '2']]],
expected: [['type' => 'i32', 'value' => '4294967294']],
line: 122,
@@ -56,7 +53,6 @@ final class SwitchTest extends SpecTestsuiteBase
public function testAssertReturn4(): void
{
$this->runAssertReturnCommand(
- module: null,
action: ['type' => 'invoke', 'field' => 'stmt', 'args' => [['type' => 'i32', 'value' => '3']]],
expected: [['type' => 'i32', 'value' => '4294967293']],
line: 123,
@@ -67,7 +63,6 @@ final class SwitchTest extends SpecTestsuiteBase
public function testAssertReturn5(): void
{
$this->runAssertReturnCommand(
- module: null,
action: ['type' => 'invoke', 'field' => 'stmt', 'args' => [['type' => 'i32', 'value' => '4']]],
expected: [['type' => 'i32', 'value' => '100']],
line: 124,
@@ -78,7 +73,6 @@ final class SwitchTest extends SpecTestsuiteBase
public function testAssertReturn6(): void
{
$this->runAssertReturnCommand(
- module: null,
action: ['type' => 'invoke', 'field' => 'stmt', 'args' => [['type' => 'i32', 'value' => '5']]],
expected: [['type' => 'i32', 'value' => '101']],
line: 125,
@@ -89,7 +83,6 @@ final class SwitchTest extends SpecTestsuiteBase
public function testAssertReturn7(): void
{
$this->runAssertReturnCommand(
- module: null,
action: ['type' => 'invoke', 'field' => 'stmt', 'args' => [['type' => 'i32', 'value' => '6']]],
expected: [['type' => 'i32', 'value' => '102']],
line: 126,
@@ -100,7 +93,6 @@ final class SwitchTest extends SpecTestsuiteBase
public function testAssertReturn8(): void
{
$this->runAssertReturnCommand(
- module: null,
action: ['type' => 'invoke', 'field' => 'stmt', 'args' => [['type' => 'i32', 'value' => '7']]],
expected: [['type' => 'i32', 'value' => '100']],
line: 127,
@@ -111,7 +103,6 @@ final class SwitchTest extends SpecTestsuiteBase
public function testAssertReturn9(): void
{
$this->runAssertReturnCommand(
- module: null,
action: ['type' => 'invoke', 'field' => 'stmt', 'args' => [['type' => 'i32', 'value' => '4294967286']]],
expected: [['type' => 'i32', 'value' => '102']],
line: 128,
@@ -122,7 +113,6 @@ final class SwitchTest extends SpecTestsuiteBase
public function testAssertReturn10(): void
{
$this->runAssertReturnCommand(
- module: null,
action: ['type' => 'invoke', 'field' => 'expr', 'args' => [['type' => 'i64', 'value' => '0']]],
expected: [['type' => 'i64', 'value' => '0']],
line: 130,
@@ -133,7 +123,6 @@ final class SwitchTest extends SpecTestsuiteBase
public function testAssertReturn11(): void
{
$this->runAssertReturnCommand(
- module: null,
action: ['type' => 'invoke', 'field' => 'expr', 'args' => [['type' => 'i64', 'value' => '1']]],
expected: [['type' => 'i64', 'value' => '18446744073709551615']],
line: 131,
@@ -144,7 +133,6 @@ final class SwitchTest extends SpecTestsuiteBase
public function testAssertReturn12(): void
{
$this->runAssertReturnCommand(
- module: null,
action: ['type' => 'invoke', 'field' => 'expr', 'args' => [['type' => 'i64', 'value' => '2']]],
expected: [['type' => 'i64', 'value' => '18446744073709551614']],
line: 132,
@@ -155,7 +143,6 @@ final class SwitchTest extends SpecTestsuiteBase
public function testAssertReturn13(): void
{
$this->runAssertReturnCommand(
- module: null,
action: ['type' => 'invoke', 'field' => 'expr', 'args' => [['type' => 'i64', 'value' => '3']]],
expected: [['type' => 'i64', 'value' => '18446744073709551613']],
line: 133,
@@ -166,7 +153,6 @@ final class SwitchTest extends SpecTestsuiteBase
public function testAssertReturn14(): void
{
$this->runAssertReturnCommand(
- module: null,
action: ['type' => 'invoke', 'field' => 'expr', 'args' => [['type' => 'i64', 'value' => '6']]],
expected: [['type' => 'i64', 'value' => '101']],
line: 134,
@@ -177,7 +163,6 @@ final class SwitchTest extends SpecTestsuiteBase
public function testAssertReturn15(): void
{
$this->runAssertReturnCommand(
- module: null,
action: ['type' => 'invoke', 'field' => 'expr', 'args' => [['type' => 'i64', 'value' => '7']]],
expected: [['type' => 'i64', 'value' => '18446744073709551611']],
line: 135,
@@ -188,7 +173,6 @@ final class SwitchTest extends SpecTestsuiteBase
public function testAssertReturn16(): void
{
$this->runAssertReturnCommand(
- module: null,
action: ['type' => 'invoke', 'field' => 'expr', 'args' => [['type' => 'i64', 'value' => '18446744073709551606']]],
expected: [['type' => 'i64', 'value' => '100']],
line: 136,
@@ -199,7 +183,6 @@ final class SwitchTest extends SpecTestsuiteBase
public function testAssertReturn17(): void
{
$this->runAssertReturnCommand(
- module: null,
action: ['type' => 'invoke', 'field' => 'arg', 'args' => [['type' => 'i32', 'value' => '0']]],
expected: [['type' => 'i32', 'value' => '110']],
line: 138,
@@ -210,7 +193,6 @@ final class SwitchTest extends SpecTestsuiteBase
public function testAssertReturn18(): void
{
$this->runAssertReturnCommand(
- module: null,
action: ['type' => 'invoke', 'field' => 'arg', 'args' => [['type' => 'i32', 'value' => '1']]],
expected: [['type' => 'i32', 'value' => '12']],
line: 139,
@@ -221,7 +203,6 @@ final class SwitchTest extends SpecTestsuiteBase
public function testAssertReturn19(): void
{
$this->runAssertReturnCommand(
- module: null,
action: ['type' => 'invoke', 'field' => 'arg', 'args' => [['type' => 'i32', 'value' => '2']]],
expected: [['type' => 'i32', 'value' => '4']],
line: 140,
@@ -232,7 +213,6 @@ final class SwitchTest extends SpecTestsuiteBase
public function testAssertReturn20(): void
{
$this->runAssertReturnCommand(
- module: null,
action: ['type' => 'invoke', 'field' => 'arg', 'args' => [['type' => 'i32', 'value' => '3']]],
expected: [['type' => 'i32', 'value' => '1116']],
line: 141,
@@ -243,7 +223,6 @@ final class SwitchTest extends SpecTestsuiteBase
public function testAssertReturn21(): void
{
$this->runAssertReturnCommand(
- module: null,
action: ['type' => 'invoke', 'field' => 'arg', 'args' => [['type' => 'i32', 'value' => '4']]],
expected: [['type' => 'i32', 'value' => '118']],
line: 142,
@@ -254,7 +233,6 @@ final class SwitchTest extends SpecTestsuiteBase
public function testAssertReturn22(): void
{
$this->runAssertReturnCommand(
- module: null,
action: ['type' => 'invoke', 'field' => 'arg', 'args' => [['type' => 'i32', 'value' => '5']]],
expected: [['type' => 'i32', 'value' => '20']],
line: 143,
@@ -265,7 +243,6 @@ final class SwitchTest extends SpecTestsuiteBase
public function testAssertReturn23(): void
{
$this->runAssertReturnCommand(
- module: null,
action: ['type' => 'invoke', 'field' => 'arg', 'args' => [['type' => 'i32', 'value' => '6']]],
expected: [['type' => 'i32', 'value' => '12']],
line: 144,
@@ -276,7 +253,6 @@ final class SwitchTest extends SpecTestsuiteBase
public function testAssertReturn24(): void
{
$this->runAssertReturnCommand(
- module: null,
action: ['type' => 'invoke', 'field' => 'arg', 'args' => [['type' => 'i32', 'value' => '7']]],
expected: [['type' => 'i32', 'value' => '1124']],
line: 145,
@@ -287,7 +263,6 @@ final class SwitchTest extends SpecTestsuiteBase
public function testAssertReturn25(): void
{
$this->runAssertReturnCommand(
- module: null,
action: ['type' => 'invoke', 'field' => 'arg', 'args' => [['type' => 'i32', 'value' => '8']]],
expected: [['type' => 'i32', 'value' => '126']],
line: 146,
@@ -298,7 +273,6 @@ final class SwitchTest extends SpecTestsuiteBase
public function testAssertReturn26(): void
{
$this->runAssertReturnCommand(
- module: null,
action: ['type' => 'invoke', 'field' => 'corner', 'args' => []],
expected: [['type' => 'i32', 'value' => '1']],
line: 148,