diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-04-28 11:02:51 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-04-28 17:38:19 +0900 |
| commit | 88a77bc5846541e5d6009bc103da378650a649f3 (patch) | |
| tree | ef4d3a57cc16bf230c3ac25068001f747e45b35e /tests/src/SpecTestsuites/Core/TableSubTest.php | |
| parent | c809cd661bba388d531f24c2ac578fbe6594f45c (diff) | |
| download | php-waddiwasi-88a77bc5846541e5d6009bc103da378650a649f3.tar.gz php-waddiwasi-88a77bc5846541e5d6009bc103da378650a649f3.tar.zst php-waddiwasi-88a77bc5846541e5d6009bc103da378650a649f3.zip | |
test: generate PHPUnit classes from WAST files
Diffstat (limited to 'tests/src/SpecTestsuites/Core/TableSubTest.php')
| -rw-r--r-- | tests/src/SpecTestsuites/Core/TableSubTest.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/src/SpecTestsuites/Core/TableSubTest.php b/tests/src/SpecTestsuites/Core/TableSubTest.php new file mode 100644 index 0000000..40c87f6 --- /dev/null +++ b/tests/src/SpecTestsuites/Core/TableSubTest.php @@ -0,0 +1,30 @@ +<?php + +declare(strict_types=1); + +namespace Nsfisis\Waddiwasi\Tests\SpecTestsuites\Core; + +use Nsfisis\Waddiwasi\Tests\SpecTestsuites\SpecTestsuiteBase; +use PHPUnit\Framework\Attributes\Depends; + +final class TableSubTest extends SpecTestsuiteBase +{ + public function testAssertInvalid0(): void + { + $this->runAssertInvalidCommand( + filename: 'table-sub.0.wasm', + text: 'type mismatch', + line: 2, + ); + } + + #[Depends('testAssertInvalid0')] + public function testAssertInvalid1(): void + { + $this->runAssertInvalidCommand( + filename: 'table-sub.1.wasm', + text: 'type mismatch', + line: 13, + ); + } +} |
