From db8b71d9b2f8b83c47c5d12516e4b445285d0e03 Mon Sep 17 00:00:00 2001 From: Lorenzo Moneta <Lorenzo.Moneta@cern.ch> Date: Wed, 22 Jul 2015 12:36:40 +0200 Subject: [PATCH] Try to fix a failing test on ARM (use same order when evaluating reference expressions) --- test/TFormulaParsingTests.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/TFormulaParsingTests.h b/test/TFormulaParsingTests.h index 9b3c7d40eaa..1e5bdd2bc05 100644 --- a/test/TFormulaParsingTests.h +++ b/test/TFormulaParsingTests.h @@ -469,7 +469,8 @@ bool test28() { TF1 fsincos("fsc", "fsin+fcos"); - TF1 f0("f0",[](double *x, double *p){ return p[0]*cos(x[0])+p[1]*sin(x[0]);},0.,10.,2); + // keep same order in evaluation + TF1 f0("f0",[](double *x, double *p){ return p[1]*sin(x[0]) + p[0]*cos(x[0]);},0.,10.,2); f0.SetParameters(1.1,2.1); ok &= (fsincos.Eval(2) == f0.Eval(2) ); return ok; -- GitLab