diff options
Diffstat (limited to 'vendor/wasm-bindgen/tests/headless/modules.rs')
-rw-r--r-- | vendor/wasm-bindgen/tests/headless/modules.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vendor/wasm-bindgen/tests/headless/modules.rs b/vendor/wasm-bindgen/tests/headless/modules.rs new file mode 100644 index 000000000..9e894f340 --- /dev/null +++ b/vendor/wasm-bindgen/tests/headless/modules.rs @@ -0,0 +1,12 @@ +use wasm_bindgen::prelude::*; +use wasm_bindgen_test::*; + +#[wasm_bindgen(raw_module = "./tests/headless/modules.js")] +extern "C" { + fn get_five() -> u32; +} + +#[wasm_bindgen_test] +fn test_get_five() { + assert_eq!(get_five(), 5); +} |