diff options
author | Ryo Nihei <nihei.dev@gmail.com> | 2021-07-18 22:15:35 +0900 |
---|---|---|
committer | Ryo Nihei <nihei.dev@gmail.com> | 2021-07-18 22:15:35 +0900 |
commit | e4a5958fc8d9e131ab083215a51a1b60acf91410 (patch) | |
tree | 6ca224a42915135e8f5427d62fc52455b1a1bc59 /spec/parser_test.go | |
parent | Add token positions to an AST (diff) | |
download | cotia-e4a5958fc8d9e131ab083215a51a1b60acf91410.tar.gz cotia-e4a5958fc8d9e131ab083215a51a1b60acf91410.tar.xz |
Detect multiple semantic errors in a single parse
Diffstat (limited to 'spec/parser_test.go')
-rw-r--r-- | spec/parser_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/parser_test.go b/spec/parser_test.go index 5a54b83..d7ca30f 100644 --- a/spec/parser_test.go +++ b/spec/parser_test.go @@ -654,7 +654,7 @@ func testParameter(t *testing.T, param, expected *ParameterNode, checkPosition b func testPosition(t *testing.T, pos, expected Position) { t.Helper() - if pos.row != expected.row { + if pos.Row != expected.Row { t.Fatalf("unexpected position want: %+v, got: %+v", expected, pos) } } |