mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-21 09:21:08 +00:00
Test_foo now testing name, SellIn and Quality
This commit is contained in:
parent
8ce9c1761f
commit
46e41c6d5a
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user