17 lines
316 B
Text
17 lines
316 B
Text
var tests = []struct {
|
|
name string
|
|
expected string
|
|
given string
|
|
}{
|
|
{"", "", "",},
|
|
}
|
|
for _, tt := range tests {
|
|
tt := tt
|
|
t.Run(tt.name, func(t *testing.T){
|
|
actual := {{++}}(tt.given)
|
|
if actual != tt.expected {
|
|
t.Errorf("{{+~\~1+}}(%s): expected %s, actual %s", tt.given, tt.expected, actual)
|
|
}
|
|
|
|
})
|
|
}
|