func itsConsistent(its *assert.Assertions, old, new []string, maxDelta int) {
	var delta int
	for _, oldItem := range old {
		if !findItem(oldItem, new) {
			delta++
		}
	}
	its.True(delta < maxDelta, fmt.Sprintf("The item arrays should differ only by %d items (differed by %d items)\n\told: %s\n\tnew: %s\n", maxDelta, delta, strings.Join(old, ", "), strings.Join(new, ", ")))
}
// itsConsistent asserts that a given before and after set differ by a given maximum delta.
itsConsistent asserts that a given before and after set differ by a given maximum delta.
// itsConsistent asserts that a given before and after set differ by a given maximum delta .
func itsConsistent(its *assert.Assertions, old, new []string, maxDelta int) {
	var delta int
	for _, oldItem := range old {
		if !findItem(oldItem, new) {
			delta++
		}
	}
	its.True(delta < maxDelta, fmt.Sprintf("The item arrays should differ only by %d items (differed by %d items)\n\told: %s\n\tnew: %s\n", maxDelta, delta, strings.Join(old, ", "), strings.Join(new, ", ")))
}
func itsConsistent ( its * assert . Assertions , old , new [ ] string , maxDelta int ) { var delta int for _ , oldItem := range old { if ! findItem ( oldItem , new ) { delta ++ } } its . True ( delta < maxDelta , fmt . Sprintf ( " \n \t \n \t \n " , maxDelta , delta , strings . Join ( old , " " ) , strings . Join ( new , " " ) ) ) }
itsConsistent asserts that a given before and after set differ by a given maximum delta.
itsConsistent asserts that a given before and after set differ by a given maximum delta .