add test coverage for IndexMut<&TicketId> (#142)

This commit is contained in:
Abdelrahman Omar authored and GitHub committed 2024-09-11 11:37:23 +02:00
1 parent ea71ac2c0a
commit e768d9dbd8
1 file changed
+6
@@ -99,5 +99,11 @@ mod tests {
let ticket = &store[id]; let ticket = &store[id];
assert_eq!(ticket.status, Status::InProgress); assert_eq!(ticket.status, Status::InProgress);
let ticket = &mut store[&id];
ticket.status = Status::Done;
let ticket = &store[id];
assert_eq!(ticket.status, Status::Done);
} }
} }