nvim/pack/acp/start/vim-go/gosnippets/minisnip/_go_tt

18 lines
316 B
Text
Raw Normal View History

2019-06-03 14:58:18 +00:00
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)
}
})
}