Files
RustySecrets/tests/generation_errors.rs
2018-02-11 22:17:07 +01:00

12 lines
270 B
Rust

extern crate rusty_secrets;
use rusty_secrets::sss;
#[test]
#[should_panic(expected = "ThresholdTooBig")]
fn test_generate_invalid_k() {
let share1 = "2-1-1YAYwmOHqZ69jA".to_string().into_bytes();
sss::split_secret(10, 5, share1.as_slice(), true).unwrap();
}