|
[yoda-svn] r513 - trunk/tests/Scatter2Dblackhole at projects.hepforge.org blackhole at projects.hepforge.orgTue Jul 31 16:06:27 BST 2012
Author: buckley Date: Tue Jul 31 16:06:27 2012 New Revision: 513 Log: Fixing tests Modified: trunk/tests/Scatter2D/S2DCreate.cc trunk/tests/Scatter2D/S2DModify.cc Modified: trunk/tests/Scatter2D/S2DCreate.cc ============================================================================== --- trunk/tests/Scatter2D/S2DCreate.cc Tue Jul 24 09:06:46 2012 (r512) +++ trunk/tests/Scatter2D/S2DCreate.cc Tue Jul 31 16:06:27 2012 (r513) @@ -29,18 +29,19 @@ Scatter2D s4(values, values, values, values); MSG_GREEN("PASS"); - MSG_(PAD(70) << "Constructing a scatter (sym err x,asym y)"); vector<pair<double, double> > valuesS; valuesS.push_back(make_pair(0,0)); - Scatter2D s5(values, values, values, valuesS); - MSG_GREEN("PASS"); - MSG_(PAD(70) << "Constructing a scatter (asym x, asym y) "); - Scatter2D s6(values, values, valuesS, valuesS); - MSG_GREEN("PASS"); + // MSG_(PAD(70) << "Constructing a scatter (sym err x,asym y)"); + // Scatter2D s5(values, values, values, valuesS); + // MSG_GREEN("PASS"); + + // MSG_(PAD(70) << "Constructing a scatter (asym x, sym y) "); + // Scatter2D s6(values, values, valuesS, values); + // MSG_GREEN("PASS"); - MSG_(PAD(70) << "Constructing a scatter (axym x, sym y) "); - Scatter2D s7(values, values, valuesS, values); + MSG_(PAD(70) << "Constructing a scatter (asym x, asym y) "); + Scatter2D s7(values, values, valuesS, valuesS); MSG_GREEN("PASS"); MSG_(PAD(70) << "Constructing a scatter (explicit asym) "); Modified: trunk/tests/Scatter2D/S2DModify.cc ============================================================================== --- trunk/tests/Scatter2D/S2DModify.cc Tue Jul 24 09:06:46 2012 (r512) +++ trunk/tests/Scatter2D/S2DModify.cc Tue Jul 31 16:06:27 2012 (r513) @@ -16,7 +16,7 @@ MSG_(PAD(70) << "Scaling the scatter: "); - s1.scale(2,3); + s1.scale(2, 3); if (s1.point(1).x() != 2 || s1.point(1).y() != 3) { MSG_RED("FAIL"); return -1; @@ -25,7 +25,7 @@ MSG_(PAD(70) << "Adding a point (first method): "); - Point2D point(1,1); + Point2D point(1, 1); s1.addPoint(point); if (s1.numPoints() != 3) { MSG_RED("FAIL"); @@ -52,7 +52,7 @@ MSG_(PAD(70) << "Adding a point (third method): "); - s1.addPoint(5,4,6,3); + s1.addPoint(5, 4, 6, 3); if (s1.numPoints() != 5) { MSG_RED("FAIL"); return -1; @@ -66,16 +66,15 @@ MSG_GREEN("PASS"); MSG_(PAD(70) << "Adding a point (fourth method): "); - pair<double, double> errs; - errs = make_pair(1,2); - s1.addPoint(10,11, errs, 2); + pair<double, double> errs = make_pair(1.0, 2.0); + s1.addPoint(10, 11, errs, errs); if (s1.numPoints() != 6) { MSG_RED("FAIL"); return -1; } if (s1.point(5).x() != 10 || s1.point(5).y() != 11 || s1.point(5).xErrMinus() != 1 || s1.point(5).xErrPlus() != 2 || - s1.point(5).yErrMinus() != 2 || s1.point(5).yErrPlus() != 2){ + s1.point(5).yErrMinus() != 1 || s1.point(5).yErrPlus() != 2) { MSG_RED("FAIL"); return -1; } @@ -83,13 +82,13 @@ MSG_(PAD(70) << "Adding a point (fifth method): "); - s1.addPoint(12,14,6,errs); + s1.addPoint(12, 14, make_pair(6, 5), errs); if (s1.numPoints() != 7) { MSG_RED("FAIL"); return -1; } if (s1.point(6).x() != 12 || s1.point(6).y() != 14 || - s1.point(6).xErrMinus() != 6 || s1.point(6).xErrPlus() != 6 || + s1.point(6).xErrMinus() != 6 || s1.point(6).xErrPlus() != 5 || s1.point(6).yErrMinus() != 1 || s1.point(6).yErrPlus() != 2){ MSG_RED("FAIL"); return -1;
More information about the yoda-svn mailing list |