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