aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/src/SpecTestsuites/Core/TableSubTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/SpecTestsuites/Core/TableSubTest.php')
-rw-r--r--tests/src/SpecTestsuites/Core/TableSubTest.php30
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,
+ );
+ }
+}