Skip to content

Commit

Permalink
Test_foo now testing name, SellIn and Quality
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfieKnee committed Oct 7, 2024
1 parent 8ce9c17 commit 46e41c6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion go/gildedrose/gildedrose_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

0 comments on commit 46e41c6

Please sign in to comment.