Test_foo now testing name, SellIn and Quality

This commit is contained in:
david.wolfson 2024-10-07 14:06:25 +01:00
parent 8ce9c1761f
commit 46e41c6d5a

View File

@ -21,6 +21,12 @@ func Test_Foo(t *testing.T) {
// Assert
if items[0].Name != expected[0].Name {
t.Errorf("Name: Expected %s but got %s ", "fixme", items[0].Name)
t.Errorf("Name: Expected %s but got %s ", expected[0].Name, items[0].Name)
}
if items[0].SellIn != expected[0].SellIn {
t.Errorf("SellIn: Expected %d but got %d ", expected[0].SellIn, items[0].SellIn)
}
if items[0].Quality != expected[0].Quality {
t.Errorf("Quality: Expected %d but got %d ", expected[0].Quality, items[0].Quality)
}
}