aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/src/SpecTestsuites/Core/CustomTest.php
blob: c1a828ecb429d1e1d05c439493050ff72377d686 (plain)
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
<?php

declare(strict_types=1);

namespace Nsfisis\Waddiwasi\Tests\SpecTestsuites\Core;

use Nsfisis\Waddiwasi\Tests\SpecTestsuites\SpecTestsuiteBase;
use PHPUnit\Framework\Attributes\DoesNotPerformAssertions;

final class CustomTest extends SpecTestsuiteBase
{
    public function testModule0(): void
    {
        $this->runModuleCommand(
            filename: 'custom.0.wasm',
            name: null,
            line: 1,
        );
    }

    public function testModule1(): void
    {
        $this->runModuleCommand(
            filename: 'custom.1.wasm',
            name: null,
            line: 14,
        );
    }

    public function testModule2(): void
    {
        $this->runModuleCommand(
            filename: 'custom.2.wasm',
            name: null,
            line: 50,
        );
    }

    public function testAssertMalformed3(): void
    {
        $this->runAssertMalformedCommand(
            filename: 'custom.3.wasm',
            text: 'unexpected end',
            line: 61,
        );
    }

    public function testAssertMalformed4(): void
    {
        $this->runAssertMalformedCommand(
            filename: 'custom.4.wasm',
            text: 'unexpected end',
            line: 69,
        );
    }

    public function testAssertMalformed5(): void
    {
        $this->runAssertMalformedCommand(
            filename: 'custom.5.wasm',
            text: 'unexpected end',
            line: 77,
        );
    }

    public function testAssertMalformed6(): void
    {
        $this->runAssertMalformedCommand(
            filename: 'custom.6.wasm',
            text: 'length out of bounds',
            line: 85,
        );
    }

    public function testAssertMalformed7(): void
    {
        $this->runAssertMalformedCommand(
            filename: 'custom.7.wasm',
            text: 'malformed section id',
            line: 93,
        );
    }

    public function testAssertMalformed8(): void
    {
        $this->runAssertMalformedCommand(
            filename: 'custom.8.wasm',
            text: 'function and code section have inconsistent lengths',
            line: 102,
        );
    }

    public function testAssertMalformed9(): void
    {
        $this->runAssertMalformedCommand(
            filename: 'custom.9.wasm',
            text: 'length out of bounds',
            line: 115,
        );
    }

    public function testAssertMalformed10(): void
    {
        $this->runAssertMalformedCommand(
            filename: 'custom.10.wasm',
            text: 'data count and data section have inconsistent lengths',
            line: 123,
        );
    }
}