Changeset 786 for trunk/test


Ignore:
Timestamp:
Mar 9, 2007, 10:38:35 AM (16 years ago)
Author:
Peter
Message:

added a test in vector_test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/vector_test.cc

    r784 r786  
    170170    this_ok=true; // good, exceoption thrown, test passed
    171171  }
     172
    172173  if (!this_ok)
    173174    ok=false;
     
    180181  vv2.div(vview); // should work without an abort due to zero pointer in mul
    181182
     183  if (vview*vview!= 3.0*3.0*vview.size())
     184    ok = false;
     185
     186  if (print && !ok)
     187    std::cout << "vector_test failed" << std::endl;
     188
     189 
     190
    182191  return (ok ? 0 : -1);
    183192}
Note: See TracChangeset for help on using the changeset viewer.