Changeset 1043 for trunk/test


Ignore:
Timestamp:
Feb 6, 2008, 8:30:03 PM (14 years ago)
Author:
Peter
Message:

fixing #128 - iterators in Averger classes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/averager_test.cc

    r1000 r1043  
    208208  theplu::yat::utility::vector y(3,0);
    209209  x(0)=0; x(1)=0; x(2)=2;
    210   apw.add_values(x,y,w,w);
     210  add(apw, x.begin(), x.end(), y.begin(), w.begin(), w.begin());
    211211  ap.reset();
    212   ap.add_values(x,y);
     212  add(ap, x.begin(), x.end(), y.begin());
    213213  if (!equal(ap,apw,tol,error)){
    214214    *error << "error: AveragerPairWeighted with unitary weights should "
     
    232232  apw2->reset();
    233233  w*=17;
    234   apw2->add_values(x,y,w,w);
     234  add(*apw2, x.begin(), x.end(), y.begin(), w.begin(), w.begin());
    235235  if (!equal(apw,*apw2,tol,error)){
    236236    *error << "error: AveragerWeighted rescaling weights "
Note: See TracChangeset for help on using the changeset viewer.