mirror of
https://github.com/Noratrieb/advent-of-code.git
synced 2026-01-14 17:45:02 +01:00
renames
This commit is contained in:
parent
040e2d4680
commit
3bb2b43742
2 changed files with 6 additions and 6 deletions
|
|
@ -1,4 +1,4 @@
|
|||
mod sort_cache;
|
||||
mod precompute_more;
|
||||
mod unstable_sort;
|
||||
|
||||
use std::cmp::{self, Ordering};
|
||||
|
|
@ -16,12 +16,12 @@ helper::define_variants! {
|
|||
part1 {
|
||||
basic => crate::part1, sample_count=10000;
|
||||
unstable_sort => crate::unstable_sort::part1, sample_count=10000;
|
||||
sort_cache => crate::sort_cache::part1, sample_count=10000;
|
||||
sort_cache => crate::precompute_more::part1, sample_count=10000;
|
||||
}
|
||||
part2 {
|
||||
basic => crate::part2, sample_count=10000;
|
||||
unstable_sort => crate::unstable_sort::part2, sample_count=10000;
|
||||
sort_cache => crate::sort_cache::part2, sample_count=10000;
|
||||
sort_cache => crate::precompute_more::part2, sample_count=10000;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -60,9 +60,9 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn hand_type() {
|
||||
assert_eq!(super::hand_type_of(*b"32T3K", false), HandType::OnePair);
|
||||
assert_eq!(super::hand_type_of(*b"K6KK6", false), HandType::FullHouse);
|
||||
assert_eq!(super::hand_type_of(*b"KTJJT", true), HandType::FourSame);
|
||||
assert_eq!(precompute_more::hand_type_of(*b"32T3K", false), HandType::OnePair);
|
||||
assert_eq!(precompute_more::hand_type_of(*b"K6KK6", false), HandType::FullHouse);
|
||||
assert_eq!(precompute_more::hand_type_of(*b"KTJJT", true), HandType::FourSame);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue