Sha256: 2f8ff572992c00af08c61c226ffd6d816d5026f12deead249fdcff7070544451

Contents?: true

Size: 466 Bytes

Versions: 72

Compression:

Stored size: 466 Bytes

Contents

package proverb

import (
	"fmt"
	"testing"
)

func TestProverb(t *testing.T) {
	for _, test := range stringTestCases {
		actual := Proverb(test.input)
		if fmt.Sprintf("%q", actual) != fmt.Sprintf("%q", test.expected) {
			t.Fatalf("Proverb test [%s], expected [%s], actual [%s]", test.input, test.expected, actual)
		}
	}
}

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

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/go/exercises/proverb/proverb_test.go
trackler-2.2.1.179 tracks/go/exercises/proverb/proverb_test.go
trackler-2.2.1.178 tracks/go/exercises/proverb/proverb_test.go
trackler-2.2.1.177 tracks/go/exercises/proverb/proverb_test.go
trackler-2.2.1.176 tracks/go/exercises/proverb/proverb_test.go
trackler-2.2.1.175 tracks/go/exercises/proverb/proverb_test.go
trackler-2.2.1.174 tracks/go/exercises/proverb/proverb_test.go
trackler-2.2.1.173 tracks/go/exercises/proverb/proverb_test.go
trackler-2.2.1.172 tracks/go/exercises/proverb/proverb_test.go
trackler-2.2.1.171 tracks/go/exercises/proverb/proverb_test.go
trackler-2.2.1.170 tracks/go/exercises/proverb/proverb_test.go
trackler-2.2.1.169 tracks/go/exercises/proverb/proverb_test.go
trackler-2.2.1.167 tracks/go/exercises/proverb/proverb_test.go
trackler-2.2.1.166 tracks/go/exercises/proverb/proverb_test.go
trackler-2.2.1.165 tracks/go/exercises/proverb/proverb_test.go
trackler-2.2.1.164 tracks/go/exercises/proverb/proverb_test.go
trackler-2.2.1.163 tracks/go/exercises/proverb/proverb_test.go
trackler-2.2.1.162 tracks/go/exercises/proverb/proverb_test.go
trackler-2.2.1.161 tracks/go/exercises/proverb/proverb_test.go
trackler-2.2.1.160 tracks/go/exercises/proverb/proverb_test.go