1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
<?php
declare(strict_types=1);
namespace Nsfisis\Waddiwasi\Tests\SpecTestsuites\Core;
use Nsfisis\Waddiwasi\Tests\SpecTestsuites\SpecTestsuiteBase;
use PHPUnit\Framework\Attributes\Depends;
final class CustomTest extends SpecTestsuiteBase
{
public function testModule0(): void
{
$this->runModuleCommand(
filename: 'custom.0.wasm',
name: null,
line: 1,
);
}
#[Depends('testModule0')]
public function testModule1(): void
{
$this->runModuleCommand(
filename: 'custom.1.wasm',
name: null,
line: 14,
);
}
#[Depends('testModule1')]
public function testModule2(): void
{
$this->runModuleCommand(
filename: 'custom.2.wasm',
name: null,
line: 50,
);
}
#[Depends('testModule2')]
public function testAssertMalformed3(): void
{
$this->runAssertMalformedCommand(
filename: 'custom.3.wasm',
text: 'unexpected end',
line: 61,
);
}
#[Depends('testAssertMalformed3')]
public function testAssertMalformed4(): void
{
$this->runAssertMalformedCommand(
filename: 'custom.4.wasm',
text: 'unexpected end',
line: 69,
);
}
#[Depends('testAssertMalformed4')]
public function testAssertMalformed5(): void
{
$this->runAssertMalformedCommand(
filename: 'custom.5.wasm',
text: 'unexpected end',
line: 77,
);
}
#[Depends('testAssertMalformed5')]
public function testAssertMalformed6(): void
{
$this->runAssertMalformedCommand(
filename: 'custom.6.wasm',
text: 'length out of bounds',
line: 85,
);
}
#[Depends('testAssertMalformed6')]
public function testAssertMalformed7(): void
{
$this->runAssertMalformedCommand(
filename: 'custom.7.wasm',
text: 'malformed section id',
line: 93,
);
}
#[Depends('testAssertMalformed7')]
public function testAssertMalformed8(): void
{
$this->runAssertMalformedCommand(
filename: 'custom.8.wasm',
text: 'function and code section have inconsistent lengths',
line: 102,
);
}
#[Depends('testAssertMalformed8')]
public function testAssertMalformed9(): void
{
$this->runAssertMalformedCommand(
filename: 'custom.9.wasm',
text: 'length out of bounds',
line: 115,
);
}
#[Depends('testAssertMalformed9')]
public function testAssertMalformed10(): void
{
$this->runAssertMalformedCommand(
filename: 'custom.10.wasm',
text: 'data count and data section have inconsistent lengths',
line: 123,
);
}
}
|