projects
/
web/konrad/chester.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
add more docu;
[web/konrad/chester.git]
/
tests
/
dptrtest.cpp
diff --git
a/tests/dptrtest.cpp
b/tests/dptrtest.cpp
index
9fe6620
..
9151f7d
100644
(file)
--- a/
tests/dptrtest.cpp
+++ b/
tests/dptrtest.cpp
@@
-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()