This commit is contained in:
Mateusz Gruszczyński committed 2026-09-21 22:58:30 +02:00
1 parent 3b969c8754
commit d80005de33
33 files changed
+722 -94

No files matched your search

+5
View File
@@ -48,6 +48,8 @@ mod tests {
let left = ControlPlan {
generated_at: generated_at.clone(),
house_mode: "cool".into(),
emergency_stop_active: false,
emergency_stop_since: None,
house_preset: Some("comfort".into()),
house_power: true,
outdoor_temperature: Some(24.0),
@@ -65,6 +67,9 @@ mod tests {
assert!(control_plans_semantically_equal(&left, &right).unwrap());
right.house_mode = "heat".into();
assert!(!control_plans_semantically_equal(&left, &right).unwrap());
right = left.clone();
right.emergency_stop_active = true;
assert!(!control_plans_semantically_equal(&left, &right).unwrap());
}
#[test]