Skip to content

Commit 470f198

Browse files
committed
[test] Avoid (x, y) notation in 2D TFormulaVecTests
This doesn't seem to work in all cases.
1 parent 8fa0a2d commit 470f198

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

test/TFormulaVecTests.h

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,13 @@ bool testVecFormula() {
109109
ok &= testVec1D("atan(x)",std::atan,.1);
110110
ok &= testVec1D("sqrt(x)",std::sqrt,2);
111111
ok &= testVec1D("abs(x)",std::abs,-1);
112-
ok &= testVec2D("pow(x,y)",std::pow,2,3);
113-
ok &= testVec2D("min(x,y)",TMath::Min,2,3);
114-
ok &= testVec2D("max(x,y)",TMath::Max,2,3);
115-
ok &= testVec2D("atan2(x,y)",TMath::ATan2,2,3);
112+
// TODO: it should be possible to use the (x, y) notation here, like pow(x, y).
113+
// This doesn't work on all platforms though, e.g. on AlmaLinux 9 it thinks
114+
// both x and y are == 2. To be investigated.
115+
ok &= testVec2D("pow(x[0],x[1])",std::pow,2,3);
116+
ok &= testVec2D("min(x[0],x[1])",TMath::Min,2,3);
117+
ok &= testVec2D("max(x[0],x[1])",TMath::Max,2,3);
118+
ok &= testVec2D("atan2(x[0],x[1])",TMath::ATan2,2,3);
116119

117120
return ok;
118121
}

0 commit comments

Comments
 (0)