100-days-of-rust/Week-02/Day-13_Need-Help-With-Packing/day13/tests/examples.rs

12 lines
199 B
Rust
Raw Normal View History

2024-08-07 12:11:20 +00:00
use day13::can_fit;
#[test]
fn example1() {
assert!(can_fit(&[2, 1, 2, 5, 4, 3, 6, 1, 1, 9, 3, 2], 4));
}
#[test]
fn example2() {
assert!(!can_fit(&[2, 7, 1, 3, 3, 4, 7, 4, 1, 8, 2], 4))
}