Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
binary-leb128_tests.cpp
Go to the documentation of this file.
1// Generated by spec_test_generator. DO NOT MODIFY THIS FILE.
2
3#include <algorithm>
4#include <vector>
5#include <iostream>
6#include <iterator>
7#include <cmath>
8#include <cstdlib>
9#include <catch2/catch.hpp>
10#include <utils.hpp>
11#include <wasm_config.hpp>
12#include <sysio/vm/backend.hpp>
13
14using namespace sysio;
15using namespace sysio::vm;
16extern wasm_allocator wa;
17
18BACKEND_TEST_CASE( "Testing wasm <binary-leb128_0_wasm>", "[binary-leb128_0_wasm_tests]" ) {
20 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.0.wasm");
21 backend_t bkend( code, &wa );
22
23}
24
25BACKEND_TEST_CASE( "Testing wasm <binary-leb128_1_wasm>", "[binary-leb128_1_wasm_tests]" ) {
27 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.1.wasm");
28 backend_t bkend( code, &wa );
29
30}
31
32BACKEND_TEST_CASE( "Testing wasm <binary-leb128_10_wasm>", "[binary-leb128_10_wasm_tests]" ) {
34 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.10.wasm");
35 backend_t bkend( code, &wa );
36
37}
38
39BACKEND_TEST_CASE( "Testing wasm <binary-leb128_11_wasm>", "[binary-leb128_11_wasm_tests]" ) {
41 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.11.wasm");
42 backend_t bkend( code, &wa );
43
44}
45
46BACKEND_TEST_CASE( "Testing wasm <binary-leb128_12_wasm>", "[binary-leb128_12_wasm_tests]" ) {
48 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.12.wasm");
49 backend_t bkend( code, &wa );
50
51}
52
53BACKEND_TEST_CASE( "Testing wasm <binary-leb128_13_wasm>", "[binary-leb128_13_wasm_tests]" ) {
55 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.13.wasm");
56 backend_t bkend( code, &wa );
57
58}
59
60BACKEND_TEST_CASE( "Testing wasm <binary-leb128_14_wasm>", "[binary-leb128_14_wasm_tests]" ) {
62 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.14.wasm");
63 backend_t bkend( code, &wa );
64
65}
66
67BACKEND_TEST_CASE( "Testing wasm <binary-leb128_15_wasm>", "[binary-leb128_15_wasm_tests]" ) {
69 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.15.wasm");
70 backend_t bkend( code, &wa );
71
72}
73
74BACKEND_TEST_CASE( "Testing wasm <binary-leb128_16_wasm>", "[binary-leb128_16_wasm_tests]" ) {
76 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.16.wasm");
77 backend_t bkend( code, &wa );
78
79}
80
81BACKEND_TEST_CASE( "Testing wasm <binary-leb128_17_wasm>", "[binary-leb128_17_wasm_tests]" ) {
83 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.17.wasm");
84 backend_t bkend( code, &wa );
85
86}
87
88BACKEND_TEST_CASE( "Testing wasm <binary-leb128_18_wasm>", "[binary-leb128_18_wasm_tests]" ) {
90 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.18.wasm");
91 backend_t bkend( code, &wa );
92
93}
94
95BACKEND_TEST_CASE( "Testing wasm <binary-leb128_19_wasm>", "[binary-leb128_19_wasm_tests]" ) {
97 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.19.wasm");
98 backend_t bkend( code, &wa );
99
100}
101
102BACKEND_TEST_CASE( "Testing wasm <binary-leb128_2_wasm>", "[binary-leb128_2_wasm_tests]" ) {
104 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.2.wasm");
105 backend_t bkend( code, &wa );
106
107}
108
109BACKEND_TEST_CASE( "Testing wasm <binary-leb128_20_wasm>", "[binary-leb128_20_wasm_tests]" ) {
111 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.20.wasm");
112 backend_t bkend( code, &wa );
113
114}
115
116BACKEND_TEST_CASE( "Testing wasm <binary-leb128_21_wasm>", "[binary-leb128_21_wasm_tests]" ) {
118 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.21.wasm");
119 backend_t bkend( code, &wa );
120
121}
122
123BACKEND_TEST_CASE( "Testing wasm <binary-leb128_22_wasm>", "[binary-leb128_22_wasm_tests]" ) {
125 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.22.wasm");
126 backend_t bkend( code, &wa );
127
128}
129
130BACKEND_TEST_CASE( "Testing wasm <binary-leb128_23_wasm>", "[binary-leb128_23_wasm_tests]" ) {
132 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.23.wasm");
133 backend_t bkend( code, &wa );
134
135}
136
137BACKEND_TEST_CASE( "Testing wasm <binary-leb128_24_wasm>", "[binary-leb128_24_wasm_tests]" ) {
139 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.24.wasm");
140 backend_t bkend( code, &wa );
141
142}
143
144BACKEND_TEST_CASE( "Testing wasm <binary-leb128_25_wasm>", "[binary-leb128_25_wasm_tests]" ) {
146 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.25.wasm");
147 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
148}
149
150BACKEND_TEST_CASE( "Testing wasm <binary-leb128_26_wasm>", "[binary-leb128_26_wasm_tests]" ) {
152 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.26.wasm");
153 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
154}
155
156BACKEND_TEST_CASE( "Testing wasm <binary-leb128_27_wasm>", "[binary-leb128_27_wasm_tests]" ) {
158 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.27.wasm");
159 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
160}
161
162BACKEND_TEST_CASE( "Testing wasm <binary-leb128_28_wasm>", "[binary-leb128_28_wasm_tests]" ) {
164 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.28.wasm");
165 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
166}
167
168BACKEND_TEST_CASE( "Testing wasm <binary-leb128_29_wasm>", "[binary-leb128_29_wasm_tests]" ) {
170 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.29.wasm");
171 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
172}
173
174BACKEND_TEST_CASE( "Testing wasm <binary-leb128_3_wasm>", "[binary-leb128_3_wasm_tests]" ) {
176 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.3.wasm");
177 backend_t bkend( code, &wa );
178
179}
180
181BACKEND_TEST_CASE( "Testing wasm <binary-leb128_30_wasm>", "[binary-leb128_30_wasm_tests]" ) {
183 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.30.wasm");
184 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
185}
186
187BACKEND_TEST_CASE( "Testing wasm <binary-leb128_31_wasm>", "[binary-leb128_31_wasm_tests]" ) {
189 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.31.wasm");
190 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
191}
192
193BACKEND_TEST_CASE( "Testing wasm <binary-leb128_32_wasm>", "[binary-leb128_32_wasm_tests]" ) {
195 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.32.wasm");
196 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
197}
198
199BACKEND_TEST_CASE( "Testing wasm <binary-leb128_33_wasm>", "[binary-leb128_33_wasm_tests]" ) {
201 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.33.wasm");
202 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
203}
204
205BACKEND_TEST_CASE( "Testing wasm <binary-leb128_34_wasm>", "[binary-leb128_34_wasm_tests]" ) {
207 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.34.wasm");
208 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
209}
210
211BACKEND_TEST_CASE( "Testing wasm <binary-leb128_35_wasm>", "[binary-leb128_35_wasm_tests]" ) {
213 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.35.wasm");
214 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
215}
216
217BACKEND_TEST_CASE( "Testing wasm <binary-leb128_36_wasm>", "[binary-leb128_36_wasm_tests]" ) {
219 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.36.wasm");
220 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
221}
222
223BACKEND_TEST_CASE( "Testing wasm <binary-leb128_37_wasm>", "[binary-leb128_37_wasm_tests]" ) {
225 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.37.wasm");
226 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
227}
228
229BACKEND_TEST_CASE( "Testing wasm <binary-leb128_38_wasm>", "[binary-leb128_38_wasm_tests]" ) {
231 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.38.wasm");
232 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
233}
234
235BACKEND_TEST_CASE( "Testing wasm <binary-leb128_39_wasm>", "[binary-leb128_39_wasm_tests]" ) {
237 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.39.wasm");
238 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
239}
240
241BACKEND_TEST_CASE( "Testing wasm <binary-leb128_4_wasm>", "[binary-leb128_4_wasm_tests]" ) {
243 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.4.wasm");
244 backend_t bkend( code, &wa );
245
246}
247
248BACKEND_TEST_CASE( "Testing wasm <binary-leb128_40_wasm>", "[binary-leb128_40_wasm_tests]" ) {
250 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.40.wasm");
251 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
252}
253
254BACKEND_TEST_CASE( "Testing wasm <binary-leb128_41_wasm>", "[binary-leb128_41_wasm_tests]" ) {
256 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.41.wasm");
257 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
258}
259
260BACKEND_TEST_CASE( "Testing wasm <binary-leb128_42_wasm>", "[binary-leb128_42_wasm_tests]" ) {
262 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.42.wasm");
263 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
264}
265
266BACKEND_TEST_CASE( "Testing wasm <binary-leb128_43_wasm>", "[binary-leb128_43_wasm_tests]" ) {
268 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.43.wasm");
269 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
270}
271
272BACKEND_TEST_CASE( "Testing wasm <binary-leb128_44_wasm>", "[binary-leb128_44_wasm_tests]" ) {
274 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.44.wasm");
275 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
276}
277
278BACKEND_TEST_CASE( "Testing wasm <binary-leb128_45_wasm>", "[binary-leb128_45_wasm_tests]" ) {
280 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.45.wasm");
281 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
282}
283
284BACKEND_TEST_CASE( "Testing wasm <binary-leb128_46_wasm>", "[binary-leb128_46_wasm_tests]" ) {
286 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.46.wasm");
287 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
288}
289
290BACKEND_TEST_CASE( "Testing wasm <binary-leb128_47_wasm>", "[binary-leb128_47_wasm_tests]" ) {
292 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.47.wasm");
293 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
294}
295
296BACKEND_TEST_CASE( "Testing wasm <binary-leb128_48_wasm>", "[binary-leb128_48_wasm_tests]" ) {
298 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.48.wasm");
299 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
300}
301
302BACKEND_TEST_CASE( "Testing wasm <binary-leb128_49_wasm>", "[binary-leb128_49_wasm_tests]" ) {
304 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.49.wasm");
305 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
306}
307
308BACKEND_TEST_CASE( "Testing wasm <binary-leb128_5_wasm>", "[binary-leb128_5_wasm_tests]" ) {
310 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.5.wasm");
311 backend_t bkend( code, &wa );
312
313}
314
315BACKEND_TEST_CASE( "Testing wasm <binary-leb128_50_wasm>", "[binary-leb128_50_wasm_tests]" ) {
317 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.50.wasm");
318 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
319}
320
321BACKEND_TEST_CASE( "Testing wasm <binary-leb128_51_wasm>", "[binary-leb128_51_wasm_tests]" ) {
323 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.51.wasm");
324 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
325}
326
327BACKEND_TEST_CASE( "Testing wasm <binary-leb128_52_wasm>", "[binary-leb128_52_wasm_tests]" ) {
329 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.52.wasm");
330 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
331}
332
333BACKEND_TEST_CASE( "Testing wasm <binary-leb128_53_wasm>", "[binary-leb128_53_wasm_tests]" ) {
335 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.53.wasm");
336 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
337}
338
339BACKEND_TEST_CASE( "Testing wasm <binary-leb128_54_wasm>", "[binary-leb128_54_wasm_tests]" ) {
341 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.54.wasm");
342 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
343}
344
345BACKEND_TEST_CASE( "Testing wasm <binary-leb128_55_wasm>", "[binary-leb128_55_wasm_tests]" ) {
347 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.55.wasm");
348 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
349}
350
351BACKEND_TEST_CASE( "Testing wasm <binary-leb128_56_wasm>", "[binary-leb128_56_wasm_tests]" ) {
353 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.56.wasm");
354 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
355}
356
357BACKEND_TEST_CASE( "Testing wasm <binary-leb128_57_wasm>", "[binary-leb128_57_wasm_tests]" ) {
359 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.57.wasm");
360 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
361}
362
363BACKEND_TEST_CASE( "Testing wasm <binary-leb128_58_wasm>", "[binary-leb128_58_wasm_tests]" ) {
365 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.58.wasm");
366 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
367}
368
369BACKEND_TEST_CASE( "Testing wasm <binary-leb128_59_wasm>", "[binary-leb128_59_wasm_tests]" ) {
371 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.59.wasm");
372 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
373}
374
375BACKEND_TEST_CASE( "Testing wasm <binary-leb128_6_wasm>", "[binary-leb128_6_wasm_tests]" ) {
377 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.6.wasm");
378 backend_t bkend( code, &wa );
379
380}
381
382BACKEND_TEST_CASE( "Testing wasm <binary-leb128_60_wasm>", "[binary-leb128_60_wasm_tests]" ) {
384 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.60.wasm");
385 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
386}
387
388BACKEND_TEST_CASE( "Testing wasm <binary-leb128_61_wasm>", "[binary-leb128_61_wasm_tests]" ) {
390 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.61.wasm");
391 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
392}
393
394BACKEND_TEST_CASE( "Testing wasm <binary-leb128_62_wasm>", "[binary-leb128_62_wasm_tests]" ) {
396 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.62.wasm");
397 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
398}
399
400BACKEND_TEST_CASE( "Testing wasm <binary-leb128_63_wasm>", "[binary-leb128_63_wasm_tests]" ) {
402 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.63.wasm");
403 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
404}
405
406BACKEND_TEST_CASE( "Testing wasm <binary-leb128_64_wasm>", "[binary-leb128_64_wasm_tests]" ) {
408 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.64.wasm");
409 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
410}
411
412BACKEND_TEST_CASE( "Testing wasm <binary-leb128_65_wasm>", "[binary-leb128_65_wasm_tests]" ) {
414 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.65.wasm");
415 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
416}
417
418BACKEND_TEST_CASE( "Testing wasm <binary-leb128_66_wasm>", "[binary-leb128_66_wasm_tests]" ) {
420 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.66.wasm");
421 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
422}
423
424BACKEND_TEST_CASE( "Testing wasm <binary-leb128_67_wasm>", "[binary-leb128_67_wasm_tests]" ) {
426 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.67.wasm");
427 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
428}
429
430BACKEND_TEST_CASE( "Testing wasm <binary-leb128_68_wasm>", "[binary-leb128_68_wasm_tests]" ) {
432 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.68.wasm");
433 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
434}
435
436BACKEND_TEST_CASE( "Testing wasm <binary-leb128_69_wasm>", "[binary-leb128_69_wasm_tests]" ) {
438 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.69.wasm");
439 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
440}
441
442BACKEND_TEST_CASE( "Testing wasm <binary-leb128_7_wasm>", "[binary-leb128_7_wasm_tests]" ) {
444 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.7.wasm");
445 backend_t bkend( code, &wa );
446
447}
448
449BACKEND_TEST_CASE( "Testing wasm <binary-leb128_70_wasm>", "[binary-leb128_70_wasm_tests]" ) {
451 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.70.wasm");
452 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
453}
454
455BACKEND_TEST_CASE( "Testing wasm <binary-leb128_71_wasm>", "[binary-leb128_71_wasm_tests]" ) {
457 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.71.wasm");
458 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
459}
460
461BACKEND_TEST_CASE( "Testing wasm <binary-leb128_72_wasm>", "[binary-leb128_72_wasm_tests]" ) {
463 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.72.wasm");
464 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
465}
466
467BACKEND_TEST_CASE( "Testing wasm <binary-leb128_73_wasm>", "[binary-leb128_73_wasm_tests]" ) {
469 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.73.wasm");
470 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
471}
472
473BACKEND_TEST_CASE( "Testing wasm <binary-leb128_74_wasm>", "[binary-leb128_74_wasm_tests]" ) {
475 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.74.wasm");
476 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
477}
478
479BACKEND_TEST_CASE( "Testing wasm <binary-leb128_75_wasm>", "[binary-leb128_75_wasm_tests]" ) {
481 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.75.wasm");
482 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
483}
484
485BACKEND_TEST_CASE( "Testing wasm <binary-leb128_76_wasm>", "[binary-leb128_76_wasm_tests]" ) {
487 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.76.wasm");
488 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
489}
490
491BACKEND_TEST_CASE( "Testing wasm <binary-leb128_77_wasm>", "[binary-leb128_77_wasm_tests]" ) {
493 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.77.wasm");
494 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
495}
496
497BACKEND_TEST_CASE( "Testing wasm <binary-leb128_78_wasm>", "[binary-leb128_78_wasm_tests]" ) {
499 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.78.wasm");
500 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
501}
502
503BACKEND_TEST_CASE( "Testing wasm <binary-leb128_79_wasm>", "[binary-leb128_79_wasm_tests]" ) {
505 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.79.wasm");
506 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
507}
508
509BACKEND_TEST_CASE( "Testing wasm <binary-leb128_8_wasm>", "[binary-leb128_8_wasm_tests]" ) {
511 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.8.wasm");
512 backend_t bkend( code, &wa );
513
514}
515
516BACKEND_TEST_CASE( "Testing wasm <binary-leb128_80_wasm>", "[binary-leb128_80_wasm_tests]" ) {
518 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.80.wasm");
519 CHECK_THROWS_AS(backend_t(code, nullptr), std::exception);
520}
521
522BACKEND_TEST_CASE( "Testing wasm <binary-leb128_9_wasm>", "[binary-leb128_9_wasm_tests]" ) {
524 auto code = read_wasm( std::string(wasm_directory) + "binary-leb128.9.wasm");
525 backend_t bkend( code, &wa );
526
527}
528
wasm_allocator wa
Definition main.cpp:10
backend_t bkend(hello_wasm, ehm, &wa)
sysio::vm::backend< rhf_t > backend_t
#define CHECK_THROWS_AS(expr, exceptionType)
Definition catch.hpp:203
std::vector< uint8_t > read_wasm(const std::string &fname)
Definition utils.hpp:30
#define BACKEND_TEST_CASE(name, tags)
Definition utils.hpp:59