homework: power socket mock - do not fail on unknown command
This commit is contained in:
@@ -61,7 +61,7 @@ mod tests {
|
||||
"main".to_string(),
|
||||
Room::new(
|
||||
[
|
||||
("ThermA".to_string(), Thermometer::new(20.0).into()),
|
||||
("ThermA".to_string(), Thermometer::stub(20.0).into()),
|
||||
("PSocA".to_string(), PowerSocket::stub(12.34, false).into()),
|
||||
("PSocB".to_string(), PowerSocket::stub(10.01, true).into()),
|
||||
]
|
||||
@@ -74,7 +74,7 @@ mod tests {
|
||||
Room::new(
|
||||
[
|
||||
("PSocC".to_string(), PowerSocket::stub(11.11, true).into()),
|
||||
("ThermB".to_string(), Thermometer::new(17.99).into()),
|
||||
("ThermB".to_string(), Thermometer::stub(17.99).into()),
|
||||
]
|
||||
.into_iter()
|
||||
.collect(),
|
||||
|
||||
Reference in New Issue
Block a user