Blame view

Modif/epsilon-master/poincare/test/factorial.cpp 445 Bytes
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  #include <quiz.h>
  #include <poincare.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)!", "undef");
    assert_parsed_expression_simplify_to("P!", "undef");
    assert_parsed_expression_simplify_to("X!", "undef");
  }