-
Notifications
You must be signed in to change notification settings - Fork 0
/
lib.rs
30 lines (27 loc) · 636 Bytes
/
lib.rs
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
use wasm_bindgen::prelude::*;
mod tests {
include!("wasm_tests/test_1.rs");
include!("wasm_tests/test_2.rs");
include!("wasm_tests/test_3.rs");
include!("wasm_tests/test_4.rs");
include!("wasm_tests/test_5.rs");
include!("wasm_tests/test_6.rs");
include!("wasm_tests/test_7.rs");
include!("wasm_tests/test_8.rs");
}
macro_rules! template {
($x:ident) => {
#[wasm_bindgen]
pub fn $x() {
tests::$x()
}
};
}
template!(test_1);
template!(test_2);
template!(test_3);
template!(test_4);
template!(test_5);
template!(test_6);
template!(test_7);
template!(test_8);