Handle errors in getOrder
This commit is contained in:
parent
262b586d0a
commit
b85bbe6e55
2 changed files with 10 additions and 8 deletions
|
|
@ -240,6 +240,11 @@ func TestStore(t *testing.T) {
|
|||
if !areCakeSlicesEqual(newOrder.Cakes, selectedOrder.Cakes) {
|
||||
t.Errorf("Want %v\nGot %v", newOrder.Cakes, selectedOrder.Cakes)
|
||||
}
|
||||
|
||||
_, err = s.getOrder(-1)
|
||||
if err == nil {
|
||||
t.Error("no error getting invalid order")
|
||||
}
|
||||
}
|
||||
|
||||
func TestSliceComparison(t *testing.T) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue