github.com/sandwich-go/boost@v1.3.29/xstrings/wrap_test.go (about)

     1  package xstrings
     2  
     3  import (
     4  	. "github.com/smartystreets/goconvey/convey"
     5  	"testing"
     6  )
     7  
     8  func TestWrap(t *testing.T) {
     9  	Convey("wrap", t, func() {
    10  		So(Wrap("a b\nc", 12), ShouldEqual, `a b
    11  c`)
    12  	})
    13  }