Open jaredoconnell opened 3 months ago
var grammarErr *InvalidGrammarError ok := errors.As(err, &grammarErr) if !ok { t.Fatalf("Returned error is not InvalidGrammarError") }
It seems like it would good to refactor this into
assert.ExpectedError(&grammarErr)
with the code moved to go-assert/error.go.
go-assert/error.go
_Originally posted by @webbnh in https://github.com/arcalot/arcaflow-expressions/pull/23#discussion_r1464037373_
It seems like it would good to refactor this into
with the code moved to
go-assert/error.go
._Originally posted by @webbnh in https://github.com/arcalot/arcaflow-expressions/pull/23#discussion_r1464037373_