diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2017-02-06 14:14:29 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2017-02-06 14:14:29 +0100 |
| commit | c433780cfacc384e424adb31187045ddf6a45650 (patch) | |
| tree | c2bce9da0c7e45b7f8a2189bf03e14e4a0305e20 /logic/score_test.go | |
| parent | 6a6b5b567174afa95b4c091b9576bcb2709a178f (diff) | |
| download | goffel-c433780cfacc384e424adb31187045ddf6a45650.tar.gz goffel-c433780cfacc384e424adb31187045ddf6a45650.zip | |
score: export entry names
Diffstat (limited to 'logic/score_test.go')
| -rw-r--r-- | logic/score_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/logic/score_test.go b/logic/score_test.go index 8371014..7dbf559 100644 --- a/logic/score_test.go +++ b/logic/score_test.go @@ -4,15 +4,15 @@ import "testing" func TestScore(t *testing.T) { s := NewScore() - s.values = [13]int{1, 2, 3, 4, 5, 6, 23, 27, 25, 30, 40, -1, 26} + s = []int{1, 2, 3, 4, 5, 6, 23, 27, 25, 30, 40, -1, 26} if s.Score() != 192 { t.Errorf("Score of \n%v should be 192", s) } - s.values = [13]int{3, 6, 9, 12, 15, 18, 23, 27, 25, 30, 40, -1, 26} + s = []int{3, 6, 9, 12, 15, 18, 23, 27, 25, 30, 40, -1, 26} if s.Score() != 269 { t.Errorf("Score of \n%v should be 269", s) } - s.values = [13]int{1, 8, 6, 8, 15, 12, 23, 15, -1, 30, 40, -1, 26} + s = []int{1, 8, 6, 8, 15, 12, 23, 15, -1, 30, 40, -1, 26} if s.Score() != 184 { t.Errorf("Score of \n%v should be 184", s) } |
