googletest: ASSERT_THROW / EXPECT_THROW
This commit is contained in:
parent
791242ea78
commit
9917ff1ce1
|
@ -25,6 +25,8 @@
|
|||
<define name="EXPECT_STRCASEEQ(str1,str2)" value="(void)(*(str1)==*(str2))"/>
|
||||
<define name="ASSERT_STRCASENE(str1,str2)" value="(void)(*(str1)!=*(str2))"/>
|
||||
<define name="EXPECT_STRCASENE(str1,str2)" value="(void)(*(str1)!=*(str2))"/>
|
||||
<define name="ASSERT_THROW(code, e)" value="try{code}catch(e){}"/>
|
||||
<define name="EXPECT_THROW(code, e)" value="try{code}catch(e){}"/>
|
||||
<define name="TEST(A,B)" value="void __ ## A ## _ ## B ( )"/>
|
||||
<define name="TEST_F(A,B)" value="void __ ## A ## _ ## B ( )"/>
|
||||
<define name="TEST_P(A,B)" value="void __ ## A ## _ ## B ( )"/>
|
||||
|
|
Loading…
Reference in New Issue