mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-20 14:20:39 +01:00
11 lines
224 B
C++
11 lines
224 B
C++
#include <quiz.h>
|
|
#include <poincare.h>
|
|
#include <assert.h>
|
|
|
|
QUIZ_CASE(poincare_procuct_approximate) {
|
|
Context context;
|
|
Expression * p = Expression::parse("1*2");
|
|
assert(p->approximate(context) == 2.0f);
|
|
delete p;
|
|
}
|