mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 22:00:28 +01:00
11 lines
229 B
C++
11 lines
229 B
C++
#include <quiz.h>
|
|
#include <poincare.h>
|
|
#include <assert.h>
|
|
|
|
QUIZ_CASE(poincare_subtraction_approximate) {
|
|
Context context;
|
|
Expression * s = Expression::parse("1-2");
|
|
assert(s->approximate(context) == -1.0f);
|
|
delete s;
|
|
}
|