Iterasyon
İlk olarak test yaz
package iteration
import "testing"
func TestRepeat(t *testing.T) {
repeated := Repeat("a")
expected := "aaaaa"
if repeated != expected {
t.Errorf("expected %q but got %q", expected, repeated)
}
}Dene ve testi çalıştır
Testin çalışması için minimum kodu yaz ve başarısız test çıktılarını kontrol et
Testi geçecek kadar kod yaz
Refactor
Kıyaslama
Alıştırmaları yap
Özetlersek
Last updated