From a8e7208a304eaf96c515794b0e8478b76e40acf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Wed, 17 Apr 2019 12:10:47 +0200 Subject: [PATCH] [apps/calculation/tests] Tests on displayExactApprox for random/round --- apps/calculation/test/calculation_store.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/calculation/test/calculation_store.cpp b/apps/calculation/test/calculation_store.cpp index 86cf0167c..cf251d910 100644 --- a/apps/calculation/test/calculation_store.cpp +++ b/apps/calculation/test/calculation_store.cpp @@ -104,6 +104,8 @@ QUIZ_CASE(calculation_display_exact_approximate) { Ion::Storage::sharedStorage()->recordNamed("a.exp").destroy(); assertCalculationDisplay("3+x→f(x)", ::Calculation::Calculation::DisplayOutput::ExactOnly, ::Calculation::Calculation::EqualSign::Unknown, "x+3", nullptr, &globalContext, &store); Ion::Storage::sharedStorage()->recordNamed("f.func").destroy(); + assertCalculationDisplay("1+1+random()", ::Calculation::Calculation::DisplayOutput::ApproximateOnly, ::Calculation::Calculation::EqualSign::Unknown, nullptr, nullptr, &globalContext, &store); + assertCalculationDisplay("1+1+round(1.343,2)", ::Calculation::Calculation::DisplayOutput::ApproximateOnly, ::Calculation::Calculation::EqualSign::Unknown, nullptr, "3.34", &globalContext, &store); } QUIZ_CASE(calculation_symbolic_computation) {