Ignore:
Timestamp:
Mar 5, 2007, 10:17:31 PM (15 years ago)
Author:
Jari Häkkinen
Message:

Fixes #195.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/vector_test.cc

    r711 r782  
    5151
    5252  // checking that shuffle works
    53   double sum_before = vec.sum();
     53  double sum_before = utility::sum(vec);
    5454  shuffle(vec);
    55   double sum_after = vec.sum();
     55  double sum_after = utility::sum(vec);
    5656  if (sum_after != sum_before)
    5757    ok = false;
     
    6262    sum_before+=vec[i];
    6363  utility::vector vec_view(vec,0,6,2);
    64   sum_after=vec_view.sum();
     64  sum_after=utility::sum(vec_view);
    6565  if (sum_after != sum_before)
    6666    ok = false;
     
    133133    ok=false;
    134134
    135 
    136135  // Checking that badly formatted files are not accepted, or at least
    137136  // throws an exception for the programmer to catch.
Note: See TracChangeset for help on using the changeset viewer.