Changeset 421 for library

Show
Ignore:
Timestamp:
07/20/09 12:17:31 (15 years ago)
Author:
vbarta
Message:

more tests

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/tests/test_shared_ptr.cpp

    r419 r421  
    2424    bdm::shared_ptr<Foo> zero; 
    2525    CHECK_EQUAL(0l, zero.use_count()); 
     26    bdm::shared_ptr<Foo> z2(zero); 
     27    CHECK_EQUAL(0l, z2.use_count()); 
    2628 
    2729    bdm::shared_ptr<Foo> one(new Foo(1)); 
     
    3234    v.push_back(bdm::shared_ptr<Foo>(new Foo(2))); 
    3335    CHECK_EQUAL(static_cast<TFooVector::size_type>(3), v.size()); 
     36 
     37    CHECK(v[0] == v[1]); 
     38    CHECK(v[1] != v[2]); 
    3439 
    3540    Foo c(*(v[0]));