From 7fc028409e369d28d43c9636c748baffa60bec63 Mon Sep 17 00:00:00 2001 From: Peter Boyer Date: Tue, 12 Jan 2016 09:42:29 -0500 Subject: [PATCH] Fix some more tests --- .../resources/org/antlr/v4/test/runtime/go/Go.test.stg | 6 +++--- .../resources/org/antlr/v4/tool/templates/codegen/Go/Go.stg | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/runtime-testsuite/resources/org/antlr/v4/test/runtime/go/Go.test.stg b/runtime-testsuite/resources/org/antlr/v4/test/runtime/go/Go.test.stg index da5053e83..6eed1e7a8 100644 --- a/runtime-testsuite/resources/org/antlr/v4/test/runtime/go/Go.test.stg +++ b/runtime-testsuite/resources/org/antlr/v4/test/runtime/go/Go.test.stg @@ -159,9 +159,9 @@ True() ::= "true" Not(v) ::= "!" -Assert(s) ::= <)>> +Assert(s) ::= "" -Cast(t,v) ::= "(())" +Cast(t,v) ::= "()" Append(a,b) ::= " + fmt.Sprint()" @@ -169,7 +169,7 @@ Concat(a,b) ::= "" DeclareLocal(s,v) ::= " := " -AssertIsList(v) ::= "List\ __ttt__ = ;" // just use type system +AssertIsList(v) ::= "" AssignLocal(s,v) ::= " = ;" diff --git a/tool/resources/org/antlr/v4/tool/templates/codegen/Go/Go.stg b/tool/resources/org/antlr/v4/tool/templates/codegen/Go/Go.stg index a655e5620..612d2a058 100644 --- a/tool/resources/org/antlr/v4/tool/templates/codegen/Go/Go.stg +++ b/tool/resources/org/antlr/v4/tool/templates/codegen/Go/Go.stg @@ -596,7 +596,7 @@ TokenPropertyRef_line(t) ::= "(func() int { if .get> ContextRuleListIndexedGetterDecl(r) ::= << -(i int) []* { +(i int) []* { var ts []antlr4.RuleContext; if i \< 0 {