mirror of https://github.com/docker/compose.git
13 lines
252 B
Go
13 lines
252 B
Go
|
package azure
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/stretchr/testify/assert"
|
||
|
)
|
||
|
|
||
|
func TestGetLinesWritten(t *testing.T) {
|
||
|
assert.Equal(t, 0, getBacktrackLines([]string{"Hello"}, 10))
|
||
|
assert.Equal(t, 3, getBacktrackLines([]string{"Hello", "world"}, 2))
|
||
|
}
|