Просмотр исходного кода

Modify BS_TEST_ASSERT to use __FUNCTION__ as a description

Marc Legendre 9 лет назад
Родитель
Сommit
08f6ff3d36
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      Source/BansheeUtility/Include/BsTestSuite.h

+ 2 - 2
Source/BansheeUtility/Include/BsTestSuite.h

@@ -13,7 +13,7 @@ namespace BansheeEngine
 	 */
 
 /** Tests if condition is true, and reports unit test failure if it fails. */
-#define BS_TEST_ASSERT(expr) assertment((expr), "", __FILE__, __LINE__); 
+#define BS_TEST_ASSERT(expr) assertment((expr), __FUNCTION__, __FILE__, __LINE__); 
 
 /** Tests if condition is true, and reports unit test failure with a message if it fails. */
 #define BS_TEST_ASSERT_MSG(expr, msg) assertment((expr), msg, __FILE__, __LINE__); 
@@ -94,4 +94,4 @@ namespace BansheeEngine
 #define BS_ADD_TEST(func) addTest(static_cast<Func>(&func), #func);
 
 	/** @} */
-}
+}