ASSERT_TRUE()提供されたものを使用するGtestと、以下のエラーが発生します。
return type does not match function typeに下線を付けVS 2010.ます。
abc.h
#include "gtest\gtest.h"
class abc {
pubilc:
bool fun();
private:
bool fun1();
};
abc.c
bool abc::fun()
{
ASSERT_TRUE(fun1()); // Getting error: return type does not match function type
}
bool abc::fun1()
{
return true; // True or false depanding on operation
}