aboutsummaryrefslogtreecommitdiff
path: root/logic
diff options
context:
space:
mode:
Diffstat (limited to 'logic')
-rw-r--r--logic/cmd.go2
-rw-r--r--logic/score_test.go8
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")