mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[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:
committed by
LeaNumworks
parent
7f63daa28e
commit
1e7babadb8
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user