add more docu;
[web/konrad/chester.git] / tests / dptrtest.cpp
index 9fe6620..9151f7d 100644 (file)
@@ -40,6 +40,12 @@ void DPtrTest::sharedDP()
        QCOMPARE(o1.num(),5);
        QCOMPARE(o2.num(),5);
        QCOMPARE(o3.num(),5);
+       //cloning
+       o2=o1.clone();
+       o2.setNum(6);
+       QCOMPARE(o1.num(),5);
+       QCOMPARE(o2.num(),6);
+       QCOMPARE(o3.num(),5);
 }
 
 void DPtrTest::noncopyDP()