1
0
Fork 0
mirror of https://github.com/vbatts/go-mtree.git synced 2024-11-29 03:25:39 +00:00
go-mtree/cvis/cvis_test.go

16 lines
390 B
Go
Raw Normal View History

// +build cgo,!govis
package cvis
import "testing"
// The resulting string of Vis output could potentially be four times longer than
// the original. Vis must handle this possibility.
func TestVisLength(t *testing.T) {
testString := "All work and no play makes Jack a dull boy\n"
for i := 0; i < 20; i++ {
Vis(testString, DefaultVisFlags)
testString = testString + testString
}
}