Skip to content

Commit

Permalink
Remove extra commas
Browse files Browse the repository at this point in the history
  • Loading branch information
EFanZh committed Jul 22, 2024
1 parent 86e4370 commit 063cd85
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ mod tests {
];

for ((events, k), expected) in test_cases {
assert_eq!(S::max_value(events.iter().map(Vec::from).collect(), k), expected,);
assert_eq!(S::max_value(events.iter().map(Vec::from).collect(), k), expected);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ mod tests {
];

for ((n, edges), expected) in test_cases {
assert_eq!(S::min_trio_degree(n, edges.iter().map(Vec::from).collect()), expected,);
assert_eq!(S::min_trio_degree(n, edges.iter().map(Vec::from).collect()), expected);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ mod tests {
let test_cases = [(&[10, 6, 5, 8] as &[_], &[8, 10] as &[_]), (&[1, 3, 5, 3], &[1, 5])];

for (nums, expected) in test_cases {
assert_eq!(test_utilities::unstable_sorted(S::find_lonely(nums.to_vec())), expected,);
assert_eq!(test_utilities::unstable_sorted(S::find_lonely(nums.to_vec())), expected);
}
}
}
2 changes: 1 addition & 1 deletion src/problem_2191_sort_the_jumbled_numbers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ mod tests {
];

for ((mapping, nums), expected) in test_cases {
assert_eq!(S::sort_jumbled(mapping.to_vec(), nums.to_vec()), expected,);
assert_eq!(S::sort_jumbled(mapping.to_vec(), nums.to_vec()), expected);
}
}
}
2 changes: 1 addition & 1 deletion src/problem_2215_find_the_difference_of_two_arrays/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ mod tests {
value.sort_unstable();
}

assert_eq!(result, expected.map(Vec::from),);
assert_eq!(result, expected.map(Vec::from));
}
}
}

0 comments on commit 063cd85

Please sign in to comment.