add a test and run test suite

This commit is contained in:
josh committed 2014-06-03 20:15:43 -04:00
1 parent 6c2ffa1b60
commit 60e34726ab
2 files changed
+14 -1

No files matched your search

+1
View File
@@ -8,6 +8,7 @@ task :default do
sources = Dir["gtest-1.7.0/src/gtest-all.cc", "*.cc"]
env.Program("tst", sources)
end
system("./tst")
end
task :clean do
+13 -1
View File
@@ -3,7 +3,19 @@
using namespace std;
class GTestTest : public testing::Test
{
protected:
};
TEST_F(GTestTest, first_test)
{
EXPECT_EQ(4, 4);
EXPECT_EQ(3, 4);
}
int main(int argc, char * argv[])
{
cout << "hi" << endl;
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}