github.com/sandwich-go/boost@v1.3.29/xstrings/camel_case_test.go (about) 1 package xstrings 2 3 import ( 4 . "github.com/smartystreets/goconvey/convey" 5 "testing" 6 ) 7 8 func TestCamelCase(t *testing.T) { 9 Convey("camel case", t, func() { 10 So(IsASCIILower('b'), ShouldBeTrue) 11 So(IsASCIILower('9'), ShouldBeFalse) 12 So(IsASCIIDigit('b'), ShouldBeFalse) 13 So(IsASCIIDigit('9'), ShouldBeTrue) 14 So(CamelCase("__camel__case_"), ShouldEqual, "XCamel_Case_") 15 So(CamelCase("camel_case"), ShouldEqual, "CamelCase") 16 }) 17 }