mirror of
https://github.com/amix/vimrc
synced 2025-06-16 01:25:00 +08:00
Updated plugins
This commit is contained in:
17
sources_non_forked/vim-go/gosnippets/minisnip/_go_tt
Normal file
17
sources_non_forked/vim-go/gosnippets/minisnip/_go_tt
Normal file
@ -0,0 +1,17 @@
|
||||
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)
|
||||
}
|
||||
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user