changes
All checks were successful
CI / ci (push) Successful in 19m38s

This commit is contained in:
2026-08-26 20:55:30 +02:00
parent a557c183e9
commit 23d052278a
523 changed files with 24448 additions and 2005 deletions

View File

@@ -0,0 +1,12 @@
use domain::metric::SleepMinutes;
#[test]
fn a_night_longer_than_a_day_is_rejected() {
assert!(SleepMinutes::new(1_441).is_err());
}
#[test]
fn the_boundaries_of_a_nights_sleep_are_valid() {
assert_eq!(SleepMinutes::new(0).unwrap().value(), 0);
assert_eq!(SleepMinutes::new(1_440).unwrap().value(), 1_440);
}