compose/aci/aci_test.go

13 lines
238 B
Go
Raw Normal View History

package aci
2020-07-02 11:11:09 +02:00
import (
"testing"
"gotest.tools/v3/assert"
2020-07-02 11:11:09 +02:00
)
func TestGetLinesWritten(t *testing.T) {
assert.Equal(t, 0, getBacktrackLines([]string{"Hello"}, 10))
assert.Equal(t, 3, getBacktrackLines([]string{"Hello", "world"}, 2))
}