This commit is contained in:
nora 2023-12-09 13:53:56 +01:00
parent 040e2d4680
commit 3bb2b43742
2 changed files with 6 additions and 6 deletions

View file

@ -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;
}
}

View file

@ -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);
}
}