|
[yoda-svn] r352 - trunk/tests/Profile1Dblackhole at projects.hepforge.org blackhole at projects.hepforge.orgWed Aug 24 14:37:13 BST 2011
Author: mkawalec Date: Wed Aug 24 14:37:12 2011 New Revision: 352 Log: Added a very basic test of an assignment operator to Profile1D. Modified: trunk/tests/Profile1D/P1DCreate.cc Modified: trunk/tests/Profile1D/P1DCreate.cc ============================================================================== --- trunk/tests/Profile1D/P1DCreate.cc Wed Aug 24 14:31:19 2011 (r351) +++ trunk/tests/Profile1D/P1DCreate.cc Wed Aug 24 14:37:12 2011 (r352) @@ -27,7 +27,20 @@ return -1; } cout << "PASS" << endl; - + + cout << "Preliminary testing of = operator "; + Profile1D p3(edges); + p3 = p2; + + if(p3.sumW() != 0 || p3.sumW2() != 0 || p3.sumW(false) != 0 || p3.sumW2(false) != 0){ + cout << "FAIL" << endl; + return -1; + } + if(p3.numBins() != 100){ + cout << "FAIL" << endl; + return -1; + } + cout << "PASS" << endl; return EXIT_SUCCESS; }
More information about the yoda-svn mailing list |