mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-16 06:51:27 +00:00
remove texttest_fixture.go
This commit is contained in:
parent
ceda8ff096
commit
e44b8e2510
@ -1,44 +0,0 @@
|
|||||||
package main
|
|
||||||
|
|
||||||
import (
|
|
||||||
"fmt"
|
|
||||||
"os"
|
|
||||||
"strconv"
|
|
||||||
)
|
|
||||||
|
|
||||||
func main() {
|
|
||||||
fmt.Println("OMGHAI!")
|
|
||||||
|
|
||||||
var items = []*Item{
|
|
||||||
&Item{"+5 Dexterity Vest", 10, 20},
|
|
||||||
&Item{"Aged Brie", 2, 0},
|
|
||||||
&Item{"Elixir of the Mongoose", 5, 7},
|
|
||||||
&Item{"Sulfuras, Hand of Ragnaros", 0, 80},
|
|
||||||
&Item{"Sulfuras, Hand of Ragnaros", -1, 80},
|
|
||||||
&Item{"Backstage passes to a TAFKAL80ETC concert", 15, 20},
|
|
||||||
&Item{"Backstage passes to a TAFKAL80ETC concert", 10, 49},
|
|
||||||
&Item{"Backstage passes to a TAFKAL80ETC concert", 5, 49},
|
|
||||||
&Item{"Conjured Mana Cake", 3, 6}, // <-- :O
|
|
||||||
}
|
|
||||||
|
|
||||||
days := 2
|
|
||||||
var err error
|
|
||||||
if len(os.Args) > 1 {
|
|
||||||
days, err = strconv.Atoi(os.Args[1])
|
|
||||||
if err != nil {
|
|
||||||
fmt.Println(err.Error())
|
|
||||||
os.Exit(1)
|
|
||||||
}
|
|
||||||
days++
|
|
||||||
}
|
|
||||||
|
|
||||||
for day := 0; day < days; day++ {
|
|
||||||
fmt.Printf("-------- day %d --------\n", day)
|
|
||||||
fmt.Println("name, sellIn, quality")
|
|
||||||
for i := 0; i < len(items); i++ {
|
|
||||||
fmt.Println(items[i])
|
|
||||||
}
|
|
||||||
fmt.Println("")
|
|
||||||
UpdateQuality(items)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue
Block a user