mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-12 20:41:24 +00:00
Add simple test for namespaces.
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::add_one(1), 2);
|
||||
assert_eq!(math::powf(1.0, 100.0), 1.0);
|
||||
assert_eq!(math::powf(10.0, 2.0), 100.0);
|
||||
}
|
Reference in New Issue
Block a user