mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-07-31 03:51:56 +00:00
Merge branch 'master' of https://github.com/rustwasm/wasm-bindgen
This commit is contained in:
10
crates/webidl-tests/namespace.rs
Normal file
10
crates/webidl-tests/namespace.rs
Normal file
@@ -0,0 +1,10 @@
|
||||
use wasm_bindgen_test::*;
|
||||
|
||||
include!(concat!(env!("OUT_DIR"), "/namespace.rs"));
|
||||
|
||||
#[wasm_bindgen_test]
|
||||
fn simple_namespace_test() {
|
||||
assert_eq!(math_test::add_one(1), 2);
|
||||
assert_eq!(math_test::pow(1.0, 100.0), 1.0);
|
||||
assert_eq!(math_test::pow(10.0, 2.0), 100.0);
|
||||
}
|
Reference in New Issue
Block a user