From fcca8e77f17097f9328ab786d28d223043ac07e5 Mon Sep 17 00:00:00 2001 From: Felix Raimundo Date: Mon, 21 Mar 2016 17:47:52 +0100 Subject: [PATCH] Add a test for products. Change-Id: I479f4fa49bca62dd1d558c745a3b43f9ab55a72a --- poincare/Makefile | 3 ++- poincare/test/product.cpp | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 poincare/test/product.cpp diff --git a/poincare/Makefile b/poincare/Makefile index bd0807155..7d0515d35 100644 --- a/poincare/Makefile +++ b/poincare/Makefile @@ -19,7 +19,8 @@ objs += $(addprefix poincare/src/layout/,\ exponent_layout.o\ string_layout.o) tests += $(addprefix poincare/test/,\ - integer.cpp) + integer.cpp\ + product.cpp) # Even though flex and bison will generate both implementation and headers at # once, we don't declare it in the Makefile. If we did, "make -jN" with N>1 may diff --git a/poincare/test/product.cpp b/poincare/test/product.cpp new file mode 100644 index 000000000..c74f39408 --- /dev/null +++ b/poincare/test/product.cpp @@ -0,0 +1,9 @@ +#include +#include +#include + +QUIZ_CASE(poincare_multiply_approximate) { + //Context context; + //Integer a(1), b(2); + //assert(Product(&a, &b).approximate(context) == 2); +}