pull/8/head
Claus Matzinger 2019-10-17 11:31:04 +02:00
rodzic 16a31fb177
commit ba2138f77d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7B183BCF2DBEC988
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -48,9 +48,10 @@ mod tests {
let chosen = emoji.choose_multiple(&mut rng, 3);
assert_eq!(chosen, ['😱', '🙃', '😭']);
let mut three_wise_monkeys = vec!['🙈', '🙉', '🙊'];
let mut three_wise_monkeys = vec!['🙈','🙉', '🙊'];
three_wise_monkeys.shuffle(&mut rng);
assert_eq!(three_wise_monkeys, ['🙈', '🙉', '🙊']);
three_wise_monkeys.shuffle(&mut rng); // in this case, the first time won't change anything
assert_eq!(three_wise_monkeys, ['🙈', '🙊', '🙉']);
let mut three_wise_monkeys = vec!['🙈', '🙉', '🙊'];
let partial = three_wise_monkeys.partial_shuffle(&mut rng, 2);