mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[apps/calc] Add test on shouldOnlyDisplayApproximateOutput
This commit is contained in:
committed by
EmilieNumworks
parent
10556b477b
commit
70a4542705
@@ -102,5 +102,12 @@ QUIZ_CASE(calculation_display_exact_approximate) {
|
||||
lastCalculation = store.calculationAtIndex(1);
|
||||
quiz_assert(lastCalculation->shouldOnlyDisplayExactOutput() == false);
|
||||
quiz_assert(lastCalculation->shouldOnlyDisplayApproximateOutput(&globalContext) == true);
|
||||
|
||||
store.deleteAll();
|
||||
store.push("28^7", &globalContext);
|
||||
lastCalculation = store.calculationAtIndex(1);
|
||||
quiz_assert(lastCalculation->shouldOnlyDisplayExactOutput() == false);
|
||||
quiz_assert(lastCalculation->shouldOnlyDisplayApproximateOutput(&globalContext) == false);
|
||||
|
||||
store.deleteAll();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user