mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-12 12:22:12 +00:00
16 lines
237 B
Go
16 lines
237 B
Go
package main
|
|
|
|
import "testing"
|
|
|
|
func Test_Foo(t *testing.T) {
|
|
var items = []*Item{
|
|
&Item{"foo", 0, 0},
|
|
}
|
|
|
|
UpdateQuality(items)
|
|
|
|
if items[0].name != "fixme" {
|
|
t.Errorf("Name: Expected %s but got %s ", "fixme", items[0].name)
|
|
}
|
|
}
|