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