Handle defer blocks when next'ing

This commit is contained in:
Derek Parker
2015-05-08 17:35:25 -05:00
parent edd73c56ee
commit 867b3ff8a1
3 changed files with 27 additions and 1 deletions

View File

@ -40,6 +40,7 @@ func TestNextLines(t *testing.T) {
{57, []int{55}},
{30, []int{32}},
{62, []int{63}},
{67, []int{71}},
}
for i, c := range cases {
lines, err := v.NextLines(tf, c.line)