mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-26 15:26:29 +00:00
chore: rustfmt
This commit is contained in:
parent
352267871c
commit
a6f99645c6
1 changed files with 3 additions and 9 deletions
|
@ -77,7 +77,7 @@ mod tests {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn count_complete_equals_for() {
|
fn count_complete_equals_for() {
|
||||||
let map = get_map();
|
let map = get_map();
|
||||||
let progressStates = vec![Progress::Complete, Progress::Some, Progress::None];
|
let progressStates = vec![Progress::Complete, Progress::Some, Progress::None];
|
||||||
for progressState in progressStates {
|
for progressState in progressStates {
|
||||||
|
@ -100,19 +100,13 @@ mod tests {
|
||||||
#[test]
|
#[test]
|
||||||
fn count_collection_some() {
|
fn count_collection_some() {
|
||||||
let collection = get_vec_map();
|
let collection = get_vec_map();
|
||||||
assert_eq!(
|
assert_eq!(1, count_collection_iterator(&collection, Progress::Some));
|
||||||
1,
|
|
||||||
count_collection_iterator(&collection, Progress::Some)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn count_collection_none() {
|
fn count_collection_none() {
|
||||||
let collection = get_vec_map();
|
let collection = get_vec_map();
|
||||||
assert_eq!(
|
assert_eq!(4, count_collection_iterator(&collection, Progress::None));
|
||||||
4,
|
|
||||||
count_collection_iterator(&collection, Progress::None)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Reference in a new issue