Commit 1e17621c authored by Robert Griesemer's avatar Robert Griesemer

go/scanner: fix build (adjust scanner EOF linecount)

R=adg
CC=golang-dev
https://golang.org/cl/3990045
parent 4497960b
......@@ -223,7 +223,7 @@ func TestScan(t *testing.T) {
for _, e := range tokens {
src += e.lit + whitespace
}
src_linecount := newlineCount(src) + 1
src_linecount := newlineCount(src)
whitespace_linecount := newlineCount(whitespace)
// verify scan
......@@ -241,7 +241,7 @@ func TestScan(t *testing.T) {
if tok == token.EOF {
lit = "<EOF>"
epos.Line = src_linecount
epos.Column = 1
epos.Column = 2
}
checkPos(t, lit, pos, epos)
if tok != e.tok {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment