Skip to content

Commit fbded9c

Browse files
committed
Remove wasm-bindgen-test
Instead, tests are conducted by running a small js script which requires the wasm module built from the test library. I removed wasm-bindgen-test because it failed to link the test module when OsRand or StdRng::from_entropy were used, despite the library working when required by js script.
1 parent ab93ff0 commit fbded9c

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

tests/wasm_bindgen/Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,3 @@ crate-type = ["cdylib"]
1212
[dependencies]
1313
rand = { path = "../..", features = ["wasm-bindgen"] }
1414
wasm-bindgen = "0.2"
15-
wasm-bindgen-test = "0.2"
16-
17-
[dev-dependencies]
18-
wasm-bindgen-test = "0.2"

tests/wasm_bindgen/src/lib.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
extern crate rand;
22
extern crate wasm_bindgen;
3-
extern crate wasm_bindgen_test;
43

54
use rand::rngs::{OsRng, StdRng};
65
use rand::FromEntropy;
@@ -21,12 +20,3 @@ pub fn generate_from_os_rand() -> i32 {
2120
pub fn generate_from_entropy() -> i32 {
2221
StdRng::from_entropy().gen()
2322
}
24-
25-
pub mod tests {
26-
use wasm_bindgen_test::*;
27-
28-
#[wasm_bindgen_test]
29-
fn generate_from_seed() {
30-
let _ = super::generate_from_seed(42);
31-
}
32-
}

0 commit comments

Comments
 (0)