summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkarsh Simha <akarsh@kde.org>2016-09-30 10:18:16 (GMT)
committerAkarsh Simha <akarsh@kde.org>2016-09-30 10:18:16 (GMT)
commit765ac46acc4aad48d18ebbfeb19dae5378561ba5 (patch)
treed988a66e3dbf0ec57937f718dfa8087bb7bb193d
parent74541e1bf7052ea403ec4d5ae3c717cc687d8292 (diff)
CachingDms test case for implicit conversion from dms
-rw-r--r--Tests/auxiliary/testcachingdms.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/Tests/auxiliary/testcachingdms.cpp b/Tests/auxiliary/testcachingdms.cpp
index 902cc92..35d2174 100644
--- a/Tests/auxiliary/testcachingdms.cpp
+++ b/Tests/auxiliary/testcachingdms.cpp
@@ -264,7 +264,7 @@ void TestCachingDms::testFailsafeUseOfBaseClassPtr() {
d = &__a;
angle b;
b.y = std::rand();
- switch( rand()%6 ) {
+ switch( rand()%7 ) {
case 0:
d->setD( b.x );
break;
@@ -286,7 +286,12 @@ void TestCachingDms::testFailsafeUseOfBaseClassPtr() {
d->setFromString( x.toHMSString(), false );
break;
}
- case 5:
+ case 5: {
+ dms x( b.x );
+ dms y( 0.0 );
+ *d = x + y;
+ }
+ case 6:
default:
d->setRadians( b.x * dms::DegToRad );
break;