From 96f5aa3c39a97e363fca43af6a5bf3a3eb9041c6 Mon Sep 17 00:00:00 2001 From: Lorenzo Moneta <Lorenzo.Moneta@cern.ch> Date: Fri, 26 Aug 2016 18:23:05 +0200 Subject: [PATCH] Add some of the changes committed in the 6.06 version --- test/TFormulaParsingTests.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/TFormulaParsingTests.h b/test/TFormulaParsingTests.h index ca385b31d48..6f28616fcbb 100644 --- a/test/TFormulaParsingTests.h +++ b/test/TFormulaParsingTests.h @@ -601,13 +601,15 @@ bool test35() { g1.SetParameters(par.data()); ok &= TMath::AreEqualRel( f1.Eval(2), g1.Eval(2), 1.E-6); + if (!ok) std::cout << "Error in test35 - f1 != g1 " << f1.Eval(2) << " " << g1.Eval(2) << std::endl; TF1 f2("f2","cheb10(0)+cheb1(11)",-1,1); TF1 g2("g2",[](double *x, double *p){ return ROOT::Math::ChebyshevN(10, x[0], p ) + ROOT::Math::ChebyshevN(1,x[0],p+11 ); }, -1, 1, 13); f2.SetParameters(par.data()); g2.SetParameters(par.data()); - ok &= TMath::AreEqualRel( f2.Eval(2), g2.Eval(2), 1.E-6); + ok &= TMath::AreEqualRel( f2.Eval(2), g2.Eval(2), 1.E-6); + if (!ok) {std::cout << "Error in test35 - f2 != g2 " << f2.Eval(2.) << " " << g2.Eval(2.) << std::endl; return ok; } -- GitLab