aboutsummaryrefslogtreecommitdiff
path: root/tester/tester.go
diff options
context:
space:
mode:
authorRyo Nihei <nihei.dev@gmail.com>2022-06-11 21:40:38 +0900
committerRyo Nihei <nihei.dev@gmail.com>2022-06-11 22:27:52 +0900
commit52ad315a0df8a346953e570e8be472709b81cc6a (patch)
tree5221784eacd9efcc63d83297d8e2b60f8acbc1bd /tester/tester.go
parentRemove the kind field from a node corresponding to an anonymous terminal symbol (diff)
downloadcotia-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.go2
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,