mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 06:00:05 +08:00
18 lines
316 B
Plaintext
18 lines
316 B
Plaintext
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)
|
|
}
|
|
|
|
})
|
|
}
|