[poincare] Fix tests

This commit is contained in:
Léa Saviot
2020-02-06 11:11:45 +01:00
parent 94d71634b6
commit b2a37cfd3e
2 changed files with 6 additions and 8 deletions

View File

@@ -441,9 +441,15 @@ QUIZ_CASE(poincare_parsing_parse_unit_convert) {
assert_simplify("_m→b", Radian, Real);
assert_text_not_parsable("1_km→a×b");
assert_simplify("2→a");
assert_text_not_parsable("3_m→a×_km");
assert_simplify("2→f(x)");
assert_text_not_parsable("3_m→f(2)×_km");
// Clean the storage for other tests
Ion::Storage::sharedStorage()->recordNamed("a.exp").destroy();
Ion::Storage::sharedStorage()->recordNamed("b.exp").destroy();
Ion::Storage::sharedStorage()->recordNamed("f.func").destroy();
}
QUIZ_CASE(poincare_parsing_implicit_multiplication) {

View File

@@ -946,14 +946,6 @@ QUIZ_CASE(poincare_simplification_unit_convert) {
assert_parsed_expression_simplify_to("1→3_m", Undefined::Name());
assert_parsed_expression_simplify_to("4→_km/_m", Undefined::Name());
assert_parsed_expression_simplify_to("3×_min→_s+1-1", Undefined::Name());
assert_simplify("2→a");
assert_parsed_expression_simplify_to("3_m→a×_km", Undefined::Name());
assert_simplify("2→f(x)");
assert_parsed_expression_simplify_to("3_m→f(2)×_km", Undefined::Name());
// Clean the storage for other tests
Ion::Storage::sharedStorage()->recordNamed("a.exp").destroy();
Ion::Storage::sharedStorage()->recordNamed("f.func").destroy();
}
QUIZ_CASE(poincare_simplification_complex_format) {