mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-05 20:01:05 +00:00
11 lines
261 B
Rust
11 lines
261 B
Rust
|
use wasm_bindgen_test::*;
|
||
|
|
||
|
include!(concat!(env!("OUT_DIR"), "/namespace.rs"));
|
||
|
|
||
|
#[wasm_bindgen_test]
|
||
|
fn simple_namespace_test() {
|
||
|
assert_eq!(math::add_one(1), 2);
|
||
|
assert_eq!(math::powf(1.0, 100.0), 1.0);
|
||
|
assert_eq!(math::powf(10.0, 2.0), 100.0);
|
||
|
}
|