diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2017-02-10 13:12:22 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2017-02-10 13:12:22 +0100 |
| commit | 94d20330c4b92e2098db2e40fee62ad8b2feead1 (patch) | |
| tree | 5916429cd3240ce721d96b687860e63419343ef0 | |
| parent | 5f49a8e99b1d2e2499bbcd26396f299166d6292b (diff) | |
| download | goffel-94d20330c4b92e2098db2e40fee62ad8b2feead1.tar.gz goffel-94d20330c4b92e2098db2e40fee62ad8b2feead1.zip | |
cmd: fix typo in help
| -rw-r--r-- | logic/cmd.go | 2 | ||||
| -rw-r--r-- | logic/score_test.go | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/logic/cmd.go b/logic/cmd.go index 7378e37..33cd705 100644 --- a/logic/cmd.go +++ b/logic/cmd.go @@ -135,7 +135,7 @@ func CmdHelp(cmd int) string { s += fmt.Sprintln("\t9: FullHouse") s += fmt.Sprintln("\t10: SmallStraight") s += fmt.Sprintln("\t11: LargeStraight") - s += fmt.Sprintln("\t12: Yathzze") + s += fmt.Sprintln("\t12: Yahtzee") s += fmt.Sprintln("\t13: Chance") default: s += fmt.Sprintln("h [cmd] - print help") diff --git a/logic/score_test.go b/logic/score_test.go index 11a460c..66ed608 100644 --- a/logic/score_test.go +++ b/logic/score_test.go @@ -114,22 +114,22 @@ func TestInsert(t *testing.T) { func TestCancel(t *testing.T) { s := NewScore() - + err := s.Cancel(1) if err != nil { t.Errorf("Cancelling Aces should not fail: %v", err) } - + err = s.Cancel(1) if err == nil { t.Errorf("Cancelling Aces twice should fail") } - + err = s.Cancel(12) if err != nil { t.Errorf("Cancelling Yahtzee should not fail: %v", err) } - + err = s.Cancel(22) if err == nil { t.Errorf("Cancelling 22 should fail") |
