From 00b1e5be1ce0d74541e371790e36a53146cb3b44 Mon Sep 17 00:00:00 2001 From: Matthew Barth Date: Fri, 9 Sep 2016 12:15:46 -0500 Subject: Propose and implement unit test framework Enable use of GoogleTest and created a sample unit test case. Change-Id: Ie370745a32777d4ed81ee24145364029c8e7bf02 Signed-off-by: Matthew Barth --- sample.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 sample.cpp (limited to 'sample.cpp') diff --git a/sample.cpp b/sample.cpp new file mode 100644 index 0000000..451c6c4 --- /dev/null +++ b/sample.cpp @@ -0,0 +1,11 @@ +#include + +int Factorial(int n) +{ + int result = 1; + for (int i=1; i<=n; i++) + { + result *= i; + } + return result; +} -- cgit v1.2.1