Sha256: 6bfd7d62f371fca581d1239cd21d04c9369ff62d4e52d734fcc9164d53ff70c9
Contents?: true
Size: 427 Bytes
Versions: 92
Compression:
Stored size: 427 Bytes
Contents
package acronym import ( "testing" ) func TestAcronym(t *testing.T) { for _, test := range stringTestCases { actual := Abbreviate(test.input) if actual != test.expected { t.Errorf("Acronym test [%s], expected [%s], actual [%s]", test.input, test.expected, actual) } } } func BenchmarkAcronym(b *testing.B) { for i := 0; i < b.N; i++ { for _, test := range stringTestCases { Abbreviate(test.input) } } }
Version data entries
92 entries across 92 versions & 1 rubygems