add test coverage for IndexMut<&TicketId> (#142)
Some checks failed
CI / build (push) Has been cancelled
CI / is_fresh (push) Has been cancelled
CI / formatter (push) Has been cancelled

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

View file

@ -99,5 +99,11 @@ mod tests {
let ticket = &store[id];
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);
}
}