Invert arguments to ASSERT_EQ to match gtest diagnostic printing
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 16 Oct 2013 22:43:10 +0000 (22:43 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 16 Oct 2013 22:43:10 +0000 (22:43 +0000)
GTest assumes the left hand side of the assert is the expectation and
the right hand side is the test result. It's easier to read gtest
failures when these things are ordered correctly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192854 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/CodeGen/DIEHashTest.cpp

index 86358d5d31a3647f11f2b6bd22d4cb56d94b2870..91b03224f0a6fba9539cebb047696d9ec4996a28 100644 (file)
@@ -23,6 +23,6 @@ TEST(DIEHashData1Test, DIEHash) {
   DIEInteger Size(4);
   Die.addValue(dwarf::DW_AT_byte_size, dwarf::DW_FORM_data1, &Size);
   uint64_t MD5Res = Hash.computeTypeSignature(&Die);
-  ASSERT_EQ(MD5Res, 0x4F68EF1039F8D2BULL);
+  ASSERT_EQ(0x4F68EF1039F8D2BULL, MD5Res);
 }
 }