Files
Upsilon/poincare/test/product.cpp
Felix Raimundo 1f9b440182 Added some basic tests for the AST members.
Change-Id: I9a1f297fb72a57e9b58e3951c22066134c8da9ea
2016-03-22 18:39:59 +01:00

12 lines
284 B
C++

#include <quiz.h>
#include <poincare.h>
#include <assert.h>
QUIZ_CASE(poincare_procuct_approximate) {
Context context;
// Note: these have to be heap allocated.
Integer *a = new Integer(1);
Integer *b = new Integer(2);
assert(Product(a, b).approximate(context) == 2.0f);
}