summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/corelib')
-rw-r--r--tests/auto/corelib/tools/qeasingcurve/tst_qeasingcurve.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/corelib/tools/qeasingcurve/tst_qeasingcurve.cpp b/tests/auto/corelib/tools/qeasingcurve/tst_qeasingcurve.cpp
index 0a006ab5b4..d5d7ddeb1d 100644
--- a/tests/auto/corelib/tools/qeasingcurve/tst_qeasingcurve.cpp
+++ b/tests/auto/corelib/tools/qeasingcurve/tst_qeasingcurve.cpp
@@ -445,6 +445,13 @@ void tst_QEasingCurve::setCustomType()
void tst_QEasingCurve::operators()
{
+ { // member-swap()
+ QEasingCurve ec1, ec2;
+ ec2.setCustomType(&discreteEase);
+ ec1.swap(ec2);
+ QCOMPARE(ec1.type(), QEasingCurve::Custom);
+ }
+
// operator=
QEasingCurve curve;
QEasingCurve curve2;