Sha256: cd932a09c69648939cfcb564013d9b566a9621fd37e0965023a9680b1bc0ef16

Contents?: true

Size: 401 Bytes

Versions: 122

Compression:

Stored size: 401 Bytes

Contents

package scrabble

import "testing"

func TestScore(t *testing.T) {
	for _, test := range scrabbleScoreTests {
		if actual := Score(test.input); actual != test.expected {
			t.Errorf("Score(%q) expected %d, Actual %d", test.input, test.expected, actual)
		}
	}
}

func BenchmarkScore(b *testing.B) {
	for i := 0; i < b.N; i++ {
		for _, test := range scrabbleScoreTests {
			Score(test.input)
		}
	}
}

Version data entries

122 entries across 122 versions & 1 rubygems

Version Path
trackler-2.2.1.98 tracks/go/exercises/scrabble-score/scrabble_score_test.go
trackler-2.2.1.97 tracks/go/exercises/scrabble-score/scrabble_score_test.go
trackler-2.2.1.96 tracks/go/exercises/scrabble-score/scrabble_score_test.go
trackler-2.2.1.95 tracks/go/exercises/scrabble-score/scrabble_score_test.go
trackler-2.2.1.94 tracks/go/exercises/scrabble-score/scrabble_score_test.go
trackler-2.2.1.93 tracks/go/exercises/scrabble-score/scrabble_score_test.go
trackler-2.2.1.92 tracks/go/exercises/scrabble-score/scrabble_score_test.go
trackler-2.2.1.91 tracks/go/exercises/scrabble-score/scrabble_score_test.go
trackler-2.2.1.90 tracks/go/exercises/scrabble-score/scrabble_score_test.go
trackler-2.2.1.89 tracks/go/exercises/scrabble-score/scrabble_score_test.go
trackler-2.2.1.88 tracks/go/exercises/scrabble-score/scrabble_score_test.go
trackler-2.2.1.87 tracks/go/exercises/scrabble-score/scrabble_score_test.go
trackler-2.2.1.86 tracks/go/exercises/scrabble-score/scrabble_score_test.go
trackler-2.2.1.85 tracks/go/exercises/scrabble-score/scrabble_score_test.go
trackler-2.2.1.84 tracks/go/exercises/scrabble-score/scrabble_score_test.go
trackler-2.2.1.83 tracks/go/exercises/scrabble-score/scrabble_score_test.go
trackler-2.2.1.82 tracks/go/exercises/scrabble-score/scrabble_score_test.go
trackler-2.2.1.81 tracks/go/exercises/scrabble-score/scrabble_score_test.go
trackler-2.2.1.80 tracks/go/exercises/scrabble-score/scrabble_score_test.go
trackler-2.2.1.79 tracks/go/exercises/scrabble-score/scrabble_score_test.go