0 | 2 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,22 @@ |
1 |
+/*! |
|
2 |
+ * @file sum_test.cc |
|
3 |
+ * @author Nepirity Corp. (dev@nepirity.com) |
|
4 |
+ * |
|
5 |
+ * @internal |
|
6 |
+ * Created: 06/30/2018 |
|
7 |
+ * Copyright: Copyright (c) 2018, Nepirity Corp. |
|
8 |
+ */ |
|
9 |
+ |
|
10 |
+#include <stdio.h> |
|
11 |
+#include <gtest/gtest.h> |
|
12 |
+ |
|
13 |
+#include "sum.h" |
|
14 |
+ |
|
15 |
+TEST(test_case_name, test_name) { |
|
16 |
+ EXPECT_EQ(2, sum(1,1)); |
|
17 |
+} |
|
18 |
+ |
|
19 |
+int main(int argc, char **argv) { |
|
20 |
+ ::testing::InitGoogleTest(&argc, argv); |
|
21 |
+ return RUN_ALL_TESTS(); |
|
22 |
+} |