mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-13 18:07:51 +08:00
71cd3835bc
Qualified imports of pkg/tt outnumber unqualified (27 to 24). Improve consistency, and clarity, by changing the dot (unqualified) imports of that package symbols to qualified.
19 lines
342 B
Go
19 lines
342 B
Go
package strutil
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"src.elv.sh/pkg/tt"
|
|
)
|
|
|
|
var Args = tt.Args
|
|
|
|
func TestCamelToDashed(t *testing.T) {
|
|
tt.Test(t, tt.Fn("CamelToDashed", CamelToDashed), tt.Table{
|
|
Args("CamelCase").Rets("camel-case"),
|
|
Args("camelCase").Rets("-camel-case"),
|
|
Args("HTTP").Rets("http"),
|
|
Args("HTTPRequest").Rets("http-request"),
|
|
})
|
|
}
|