github.com/avicd/go-utilx@v0.1.0/tokx/quota_test.go (about) 1 package tokx 2 3 import ( 4 "github.com/stretchr/testify/assert" 5 "testing" 6 ) 7 8 func TestDoubleQuota(t *testing.T) { 9 text := "'testA' + \"testB\"" 10 assert.Equal(t, "\"testA\" + \"testB\"", DoubleQuota(text)) 11 }