diff options
Diffstat (limited to 'tests/web.rs')
-rw-r--r-- | tests/web.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/web.rs b/tests/web.rs index 607f16d..b83608f 100644 --- a/tests/web.rs +++ b/tests/web.rs @@ -62,3 +62,15 @@ fn generate_not_special_letters() { } } } + +#[wasm_bindgen_test] +fn generate_0_len() { + let password = generate(0, true, true, true, true); + assert_eq!(0, password.len()) +} + +#[wasm_bindgen_test] +fn generate_no_letters() { + let password = generate(100, false, false, false, false); + assert_eq!(0, password.len()) +} |