blob: 14f0983fb9a6a4971e99b90f4ce1c063a3bb6711 (
plain) (
tree)
|
|
package raindrops
import "testing"
func TestConvert(t *testing.T) {
for _, test := range tests {
if actual := Convert(test.input); actual != test.expected {
t.Errorf("Convert(%d) = %q, expected %q.",
test.input, actual, test.expected)
}
}
}
func BenchmarkConvert(b *testing.B) {
for i := 0; i < b.N; i++ {
for _, test := range tests {
Convert(test.input)
}
}
}
|