Files
k-mood/crates/domain/tests/metric/alcoholic_drinks_test.rs
Gabriel Kaszewski 23d052278a
All checks were successful
CI / ci (push) Successful in 19m38s
changes
2026-08-26 20:58:14 +02:00

13 lines
335 B
Rust

use domain::metric::AlcoholicDrinks;
#[test]
fn a_count_of_drinks_no_one_survives_is_rejected() {
assert!(AlcoholicDrinks::new(61).is_err());
}
#[test]
fn the_boundaries_of_a_days_drinking_are_valid() {
assert_eq!(AlcoholicDrinks::new(0).unwrap().value(), 0);
assert_eq!(AlcoholicDrinks::new(60).unwrap().value(), 60);
}