keyfork-mnemonic-generate: so, dedup only removes sequential duplicates
This commit is contained in:
parent
3032e11b78
commit
ac40930b2f
|
@ -270,6 +270,8 @@ mod tests {
|
|||
*set.entry(word).or_insert(0) += 1;
|
||||
}
|
||||
let mut words = mnemonic.word_iter().collect::<Vec<_>>();
|
||||
words.sort();
|
||||
assert_eq!(words.len(), 24);
|
||||
words.dedup();
|
||||
if words.len() != 24 {
|
||||
count += 1.;
|
||||
|
|
Loading…
Reference in New Issue