mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-29 11:39:58 +02:00
15 lines
456 B
C++
15 lines
456 B
C++
#include <quiz.h>
|
||
#include <ion.h>
|
||
#include <assert.h>
|
||
#include "helper.h"
|
||
|
||
using namespace Poincare;
|
||
|
||
QUIZ_CASE(poincare_factorial_simplify) {
|
||
assert_parsed_expression_simplify_to("1/3!", "1/6");
|
||
assert_parsed_expression_simplify_to("5!", "120");
|
||
assert_parsed_expression_simplify_to("(1/3)!", Undefined::Name());
|
||
assert_parsed_expression_simplify_to("π!", Undefined::Name());
|
||
assert_parsed_expression_simplify_to("ℯ!", Undefined::Name());
|
||
}
|