Ignore:
Timestamp:
Mar 6, 2007, 5:02:30 PM (15 years ago)
Author:
Jari Häkkinen
Message:

References #155. Removed potential null pointer usage. Some unwanted asserts removed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/vector_test.cc

    r782 r784  
    173173    ok=false;
    174174
     175  // test of const view implementation (make sure no zero pointer used.
     176  const utility::vector vv(10,3.0);
     177  const utility::vector vview(vv,0,5,1);
     178  utility::vector vv2(5,2.0);
     179  vv2.mul(vview); // should work without an abort due to zero pointer in mul
     180  vv2.div(vview); // should work without an abort due to zero pointer in mul
     181
    175182  return (ok ? 0 : -1);
    176183}
Note: See TracChangeset for help on using the changeset viewer.