add test coverage for IndexMut<&TicketId> (#142)
This commit is contained in:
parent
ea71ac2c0a
commit
e768d9dbd8
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue