mirror of
https://github.com/docker/compose.git
synced 2025-10-18 13:53:46 +02:00
13 lines
250 B
Go
13 lines
250 B
Go
package aci
|
|
|
|
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))
|
|
}
|