diff options
Diffstat (limited to 'spec/test/parser.go')
-rw-r--r-- | spec/test/parser.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/test/parser.go b/spec/test/parser.go index e9c557d..aa5d022 100644 --- a/spec/test/parser.go +++ b/spec/test/parser.go @@ -99,8 +99,7 @@ func DiffTree(expected, actual *Tree) []*TreeDiff { if expected == nil && actual == nil { return nil } - // _ matches any symbols. - if expected.Kind != "_" && actual.Kind != expected.Kind { + if actual.Kind != expected.Kind { msg := fmt.Sprintf("unexpected kind: expected '%v' but got '%v'", expected.Kind, actual.Kind) return []*TreeDiff{ newTreeDiff(expected, actual, msg), |