mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-22 17:41:33 +03:00
11 lines
274 B
Rust
11 lines
274 B
Rust
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);
|
|
}
|