summaryrefslogtreecommitdiffstats
path: root/test/sample_unittest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/sample_unittest.cpp')
-rw-r--r--test/sample_unittest.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/sample_unittest.cpp b/test/sample_unittest.cpp
new file mode 100644
index 0000000..2a27279
--- /dev/null
+++ b/test/sample_unittest.cpp
@@ -0,0 +1,6 @@
+#include "sample.h"
+#include <gtest/gtest.h>
+
+TEST(FactorialTest, Zero) {
+ EXPECT_EQ(1, Factorial(0));
+}
OpenPOWER on IntegriCloud