llvm.org GIT mirror llvm / e4df43e
Use ASSERT_EQ rather than ASSERT_TRUE for better unit test failures. Also minor using namespace move so it's not hard-up against the function definition and outside the namespace as is usual. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192744 91177308-0d34-0410-b5e6-96231b3b80d8 David Blaikie 7 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
1313 #include "llvm/Support/Format.h"
1414 #include "gtest/gtest.h"
1515
16 using namespace llvm;
17
1618 namespace {
17
18 using namespace llvm;
1919 TEST(DIEHashData1Test, DIEHash) {
2020 DIEHash Hash;
2121 DIE Die(dwarf::DW_TAG_base_type);
2222 DIEInteger Size(4);
2323 Die.addValue(dwarf::DW_AT_byte_size, dwarf::DW_FORM_data1, &Size);
2424 uint64_t MD5Res = Hash.computeTypeSignature(&Die);
25 ASSERT_TRUE(MD5Res == 0x540e9ff30ade3e4aULL);
25 ASSERT_EQ(MD5Res, 0x540e9ff30ade3e4aULL);
2626 }
2727 }