Brought analyzer up to date

This commit is contained in:
Sasha Koshka 2024-02-08 16:53:15 -05:00
parent 93061188e8
commit fbcc1f14d2
1 changed files with 5 additions and 5 deletions

View File

@ -43,17 +43,17 @@ func testReaderErr (
return
}
got := err.(*errors.Error)
gotMessage := got.Message
gotRow := got.Position.Row + 1
gotStart := got.Position.Start + 1
got := err.(errors.Error)
gotMessage := got.Error()
gotRow := got.Position().Row + 1
gotStart := got.Position().Start + 1
correct :=
gotMessage == errMessage &&
gotRow == errRow &&
gotStart == errStart
if !correct {
test.Log("errors do not match")
test.Log("got:\n" + got.Format())
test.Log("got:\n" + errors.Format(got))
test.Logf("correct:\n%v:%v: %v", errRow, errStart, errMessage)
test.Fail()
}