[solver] Change angle unit before test

A test in equation_solve relies on the angle unit being set to Degree,
but doesn't actually set it. Changing the angle unit to another one in a
test prior would break this test.

Change-Id: I6785b087f171d46226d484ebaa3ebdc9e791cedc
This commit is contained in:
Gabriel Ozouf
2020-11-26 14:56:00 +01:00
committed by LeaNumworks
parent 7f63daa28e
commit 1e7babadb8

View File

@@ -78,6 +78,7 @@ QUIZ_CASE(equation_solve) {
unset("x");
// Monovariable non-polynomial equation
Poincare::Preferences::sharedPreferences()->setAngleUnit(Degree);
assert_solves_numerically_to("cos(x)=0", -100, 100, {-90.0, 90.0});
assert_solves_numerically_to("cos(x)=0", -900, 1000, {-810.0, -630.0, -450.0, -270.0, -90.0, 90.0, 270.0, 450.0, 630.0, 810.0});
assert_solves_numerically_to("√(y)=0", -900, 1000, {0}, "y");