Blame view

emulateur/epsilon-nofrendo/poincare/test/store.cpp 449 Bytes
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  #include <quiz.h>
  #include <poincare.h>
  #include <ion.h>
  #include <assert.h>
  #include "helper.h"
  
  using namespace Poincare;
  
  QUIZ_CASE(poincare_store_evaluate) {
    assert_parsed_expression_evaluates_to<float>("1+42>A", "43");
    assert_parsed_expression_evaluates_to<double>("0.123+I>B", "0.123+I");
  }
  
  QUIZ_CASE(poincare_store_simplify) {
    assert_parsed_expression_simplify_to("1+2>A", "A");
    assert_parsed_expression_simplify_to("1+2>x", "x");
  }