#include <algorithm>
#include <vector>
#include <iostream>
#include <iterator>
#include <cmath>
#include <cstdlib>
#include <catch2/catch.hpp>
#include <utils.hpp>
#include <wasm_config.hpp>
#include <sysio/vm/backend.hpp>
Go to the source code of this file.
◆ BACKEND_TEST_CASE() [1/4]
BACKEND_TEST_CASE |
( |
"Testing wasm <traps_0_wasm>" | , |
|
|
"" | [traps_0_wasm_tests] ) |
Definition at line 18 of file traps_tests.cpp.
18 {
20 auto code =
read_wasm( std::string(wasm_directory) +
"traps.0.wasm");
22
29}
backend_t bkend(hello_wasm, ehm, &wa)
#define CHECK_THROWS_AS(expr, exceptionType)
std::vector< uint8_t > read_wasm(const std::string &fname)
◆ BACKEND_TEST_CASE() [2/4]
BACKEND_TEST_CASE |
( |
"Testing wasm <traps_1_wasm>" | , |
|
|
"" | [traps_1_wasm_tests] ) |
Definition at line 31 of file traps_tests.cpp.
31 {
33 auto code =
read_wasm( std::string(wasm_directory) +
"traps.1.wasm");
35
40}
◆ BACKEND_TEST_CASE() [3/4]
BACKEND_TEST_CASE |
( |
"Testing wasm <traps_2_wasm>" | , |
|
|
"" | [traps_2_wasm_tests] ) |
Definition at line 42 of file traps_tests.cpp.
42 {
44 auto code =
read_wasm( std::string(wasm_directory) +
"traps.2.wasm");
46
55}
◆ BACKEND_TEST_CASE() [4/4]
BACKEND_TEST_CASE |
( |
"Testing wasm <traps_3_wasm>" | , |
|
|
"" | [traps_3_wasm_tests] ) |
Definition at line 57 of file traps_tests.cpp.
57 {
59 auto code =
read_wasm( std::string(wasm_directory) +
"traps.3.wasm");
61
76}
◆ wa