mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
12 lines
284 B
C++
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);
|
|
}
|