Sha256: ca869af086318e3a814bb20b4519f26fea6bca7a8f9352857575a9967839aa63

Contents?: true

Size: 469 Bytes

Versions: 117

Compression:

Stored size: 469 Bytes

Contents

package pangram

import (
	"testing"
)

func TestPangram(t *testing.T) {
	for _, test := range testCases {
		if actual := IsPangram(test.input); actual != test.expected {
			t.Fatalf("FAIL: %s\nInput %q expected [%t], actual [%t]", test.description, test.input, test.expected, actual)
		}
		t.Logf("PASS: %s", test.description)
	}
}

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

Version data entries

117 entries across 117 versions & 1 rubygems

Version Path
trackler-2.2.1.139 tracks/go/exercises/pangram/pangram_test.go
trackler-2.2.1.138 tracks/go/exercises/pangram/pangram_test.go
trackler-2.2.1.137 tracks/go/exercises/pangram/pangram_test.go
trackler-2.2.1.136 tracks/go/exercises/pangram/pangram_test.go
trackler-2.2.1.135 tracks/go/exercises/pangram/pangram_test.go
trackler-2.2.1.134 tracks/go/exercises/pangram/pangram_test.go
trackler-2.2.1.133 tracks/go/exercises/pangram/pangram_test.go
trackler-2.2.1.132 tracks/go/exercises/pangram/pangram_test.go
trackler-2.2.1.131 tracks/go/exercises/pangram/pangram_test.go
trackler-2.2.1.130 tracks/go/exercises/pangram/pangram_test.go
trackler-2.2.1.129 tracks/go/exercises/pangram/pangram_test.go
trackler-2.2.1.128 tracks/go/exercises/pangram/pangram_test.go
trackler-2.2.1.127 tracks/go/exercises/pangram/pangram_test.go
trackler-2.2.1.126 tracks/go/exercises/pangram/pangram_test.go
trackler-2.2.1.125 tracks/go/exercises/pangram/pangram_test.go
trackler-2.2.1.124 tracks/go/exercises/pangram/pangram_test.go
trackler-2.2.1.123 tracks/go/exercises/pangram/pangram_test.go
trackler-2.2.1.122 tracks/go/exercises/pangram/pangram_test.go
trackler-2.2.1.121 tracks/go/exercises/pangram/pangram_test.go
trackler-2.2.1.120 tracks/go/exercises/pangram/pangram_test.go