☰
Debian Codegraph
@
1.4.4-1
/
/
.cargo
/
vendor
/
wasm-bindgen
/
tests
/
worker
/
modules.rs
☽
☼
.cargo/vendor/wasm-bindgen/tests/worker/modules.rs
code
plain
raw
Apache-2.0-Expat
2014, Alex Crichton
debian/copyright
1
use wasm_bindgen::prelude::*;
2
use wasm_bindgen_test::*;
3
4
#[wasm_bindgen(raw_module = "./tests/worker/modules.js")]
5
extern "C" {
6
fn get_five() -> u32;
7
}
8
9
#[wasm_bindgen_test]
10
fn test_get_five() {
11
assert_eq!(get_five(), 5);
12
}