From 88a77bc5846541e5d6009bc103da378650a649f3 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 28 Apr 2024 11:02:51 +0900 Subject: test: generate PHPUnit classes from WAST files --- tests/src/SpecTestsuites/Core/TableSubTest.php | 30 ++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tests/src/SpecTestsuites/Core/TableSubTest.php (limited to 'tests/src/SpecTestsuites/Core/TableSubTest.php') 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 @@ +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, + ); + } +} -- cgit v1.2.3-70-g09d2