Improve error messages raised by SpvParserTest
EXPECT_THAT(xxx, Eq(yyy)) << ToString(xxx); is a less-idiomatic way of writing: EXPECT_EQ(xxx, yyy); The latter also provides a diff when two strings do not match. Refactor these to: auto got = xxx; auto expect = yyy; EXPECT_EQ(got, expect); So that the error message clearly shows which one is the generated, and which one is the reference. Change-Id: I299204a615aa3e68cd82d19ce892ab33aabe2f08 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/35006 Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
parent
d1398203f9
commit
bd018d254d