Fix tests

This commit is contained in:
Richard Dodd
2018-08-12 21:27:27 +01:00
parent 23009dbc1e
commit 4f0ddd25ce
3 changed files with 12 additions and 12 deletions

View File

@ -4,7 +4,7 @@ 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);
assert_eq!(mathtest::add_one(1), 2);
assert_eq!(mathtest::powf(1.0, 100.0), 1.0);
assert_eq!(mathtest::powf(10.0, 2.0), 100.0);
}