blob: 1aa86d469b4940d54768e62dd5bb61a2acd3046b [file] [log] [blame]
package linenumbers
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestLineNumbers(t *testing.T) {
code := `a
b
c`
want := `#line 1
a
b
c`
assert.Equal(t, want, LineNumbers(code))
code = ``
want = `#line 1
`
assert.Equal(t, want, LineNumbers(code))
}