mirror of
https://github.com/Noratrieb/advent-of-code.git
synced 2026-01-16 10:35: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;
|
mod unstable_sort;
|
||||||
|
|
||||||
use std::cmp::{self, Ordering};
|
use std::cmp::{self, Ordering};
|
||||||
|
|
@ -16,12 +16,12 @@ helper::define_variants! {
|
||||||
part1 {
|
part1 {
|
||||||
basic => crate::part1, sample_count=10000;
|
basic => crate::part1, sample_count=10000;
|
||||||
unstable_sort => crate::unstable_sort::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 {
|
part2 {
|
||||||
basic => crate::part2, sample_count=10000;
|
basic => crate::part2, sample_count=10000;
|
||||||
unstable_sort => crate::unstable_sort::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]
|
#[test]
|
||||||
fn hand_type() {
|
fn hand_type() {
|
||||||
assert_eq!(super::hand_type_of(*b"32T3K", false), HandType::OnePair);
|
assert_eq!(precompute_more::hand_type_of(*b"32T3K", false), HandType::OnePair);
|
||||||
assert_eq!(super::hand_type_of(*b"K6KK6", false), HandType::FullHouse);
|
assert_eq!(precompute_more::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"KTJJT", true), HandType::FourSame);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue