mirror of
https://github.com/rclone/rclone.git
synced 2024-12-11 09:41:47 +01:00
15 lines
289 B
Go
15 lines
289 B
Go
|
package convert
|
||
|
|
||
|
import (
|
||
|
"strings"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestStringSliceWithConverter(t *testing.T) {
|
||
|
s := StringSliceWithConverter([]string{"A", "b", "C"}, strings.ToLower)
|
||
|
e := []string{"a", "b", "c"}
|
||
|
if s[0] != e[0] || s[1] != e[1] || s[2] != e[2] {
|
||
|
t.Errorf("%v != %v", s, e)
|
||
|
}
|
||
|
}
|