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

This commit is contained in:
Abdelrahman Omar 2024-09-11 12:37:23 +03:00 committed by GitHub
parent ea71ac2c0a
commit e768d9dbd8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -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);
} }
} }