primeiro commit com exercicios de Exercism realizados até esta data
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package raindrops
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestConvert(t *testing.T) {
|
||||
for _, tc := range testCases {
|
||||
t.Run(tc.description, func(t *testing.T) {
|
||||
if actual := Convert(tc.input); actual != tc.expected {
|
||||
t.Fatalf("Convert(%d) = %q, want: %q", tc.input, actual, tc.expected)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
func BenchmarkConvert(b *testing.B) {
|
||||
for b.Loop() {
|
||||
for _, test := range testCases {
|
||||
Convert(test.input)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user