Sha256: e8f7a9a027a08f7840ac397f586e442eb04220ab344fabacb547bb8b8bcf217c
Contents?: true
Size: 423 Bytes
Versions: 81
Compression:
Stored size: 423 Bytes
Contents
package isogram import "testing" func TestIsIsogram(t *testing.T) { for _, c := range testCases { if IsIsogram(c.input) != c.expected { t.Fatalf("FAIL: %s\nWord %q, expected %t, got %t", c.description, c.input, c.expected, !c.expected) } t.Logf("PASS: Word %q", c.input) } } func BenchmarkIsIsogram(b *testing.B) { for i := 0; i < b.N; i++ { for _, c := range testCases { IsIsogram(c.input) } } }
Version data entries
81 entries across 81 versions & 1 rubygems