diff options
author | Ryo Nihei <nihei.dev@gmail.com> | 2022-06-11 21:40:38 +0900 |
---|---|---|
committer | Ryo Nihei <nihei.dev@gmail.com> | 2022-06-11 22:27:52 +0900 |
commit | 52ad315a0df8a346953e570e8be472709b81cc6a (patch) | |
tree | 5221784eacd9efcc63d83297d8e2b60f8acbc1bd /tester/tester.go | |
parent | Remove the kind field from a node corresponding to an anonymous terminal symbol (diff) | |
download | cotia-52ad315a0df8a346953e570e8be472709b81cc6a.tar.gz cotia-52ad315a0df8a346953e570e8be472709b81cc6a.tar.xz |
Support the underscore symbol matching any symbols in vartan-test command
Diffstat (limited to 'tester/tester.go')
-rw-r--r-- | tester/tester.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tester/tester.go b/tester/tester.go index 70d4800..a39026a 100644 --- a/tester/tester.go +++ b/tester/tester.go @@ -152,7 +152,7 @@ func runTest(g *gspec.CompiledGrammar, c *TestCaseWithMetadata) *TestResult { } // When a parse tree exists, the test continues regardless of whether or not syntax errors occurred. - diffs := tspec.DiffTree(ConvertSyntaxTreeToTestableTree(tb.Tree()).Fill(), c.TestCase.Output) + diffs := tspec.DiffTree(c.TestCase.Output, ConvertSyntaxTreeToTestableTree(tb.Tree()).Fill()) if len(diffs) > 0 { return &TestResult{ TestCasePath: c.FilePath, |