TEST(SymbolTableTest, InsertNameWithNullSymbolAborts){ SgSymbolTable *p = new SgSymbolTable(); const SgName foo("foo"); EXPECT_EQ(p->size(), 0); EXPECT_DEATH(p->insert(foo, NULL), ""); }
TEST(SymbolTableTest, DefaultConstructorLeadsToEmptySymbolSet){ SgSymbolTable *p = new SgSymbolTable(); ASSERT_EQ(isNull(p), false); EXPECT_EQ(p->size(), 0); }