Closed GoogleCodeExporter closed 9 years ago
This is by-design and documented in the wiki (EXPECT_EQ(expected, actual)).
In testing, "expect A to be B" and "expect B to be A" are very different. Being
asymmetric makes it explicit which value is being validated and which is the
golden
value. The order (expected, actual) is to be consistent with other xUnit-based
testing frameworks like JUnit and PyUnit.
Original comment by zhanyong...@gmail.com
on 12 Jan 2009 at 8:55
Original issue reported on code.google.com by
j.nick.terry@gmail.com
on 7 Jan 2009 at 7:15