mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
Add a test for products.
Change-Id: I479f4fa49bca62dd1d558c745a3b43f9ab55a72a
This commit is contained in:
@@ -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
|
||||
|
||||
9
poincare/test/product.cpp
Normal file
9
poincare/test/product.cpp
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user