aci_test.go 252 B

123456789101112
  1. package azure
  2. import (
  3. "testing"
  4. "github.com/stretchr/testify/assert"
  5. )
  6. func TestGetLinesWritten(t *testing.T) {
  7. assert.Equal(t, 0, getBacktrackLines([]string{"Hello"}, 10))
  8. assert.Equal(t, 3, getBacktrackLines([]string{"Hello", "world"}, 2))
  9. }