mirror of
https://github.com/vbatts/go-mtree.git
synced 2024-11-29 03:25:39 +00:00
16 lines
390 B
Go
16 lines
390 B
Go
|
// +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
|
||
|
}
|
||
|
}
|