github.com/bingoohuang/gg@v0.0.0-20240325092523-45da7dee9335/pkg/ss/parse_test.go (about) 1 package ss 2 3 import ( 4 "testing" 5 "unicode" 6 7 "github.com/stretchr/testify/assert" 8 ) 9 10 func TestStripSpaces(t *testing.T) { 11 assert.Equal(t, "abc", StripSpaces("a b\rc")) 12 assert.Equal(t, "abc", Strip("\ta\u0020b\u3000c", unicode.IsSpace, Not(unicode.IsPrint))) 13 }