mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[poincare] Fix tests
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user