Add a test for products.

Change-Id: I479f4fa49bca62dd1d558c745a3b43f9ab55a72a
This commit is contained in:
Felix Raimundo
2016-03-21 17:47:52 +01:00
parent a5f01b35af
commit fcca8e77f1
2 changed files with 11 additions and 1 deletions

View File

@@ -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

View File

@@ -0,0 +1,9 @@
#include <quiz.h>
#include <poincare.h>
#include <assert.h>
QUIZ_CASE(poincare_multiply_approximate) {
//Context context;
//Integer a(1), b(2);
//assert(Product(&a, &b).approximate(context) == 2);
}