From e08410ab8db3d7cabf4ef2fc4de40bb6da6d6fef Mon Sep 17 00:00:00 2001 From: Jason McDonald Date: Thu, 24 Nov 2011 17:34:51 +1000 Subject: Cleanup corelib autotests Bug trackers come and go, so using bug identifiers in function and test case names will ensure that those names eventually become meaningless. It is better to choose a meaningful name and provide explanatory comments where appropriate. Change-Id: I67c27782ef21b5d4eaab4854079a043c8ef6957b Reviewed-by: Rohan McGovern --- tests/auto/corelib/tools/qregexp/tst_qregexp.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'tests/auto/corelib/tools/qregexp/tst_qregexp.cpp') diff --git a/tests/auto/corelib/tools/qregexp/tst_qregexp.cpp b/tests/auto/corelib/tools/qregexp/tst_qregexp.cpp index 2f1ac10694..21bf9d1539 100644 --- a/tests/auto/corelib/tools/qregexp/tst_qregexp.cpp +++ b/tests/auto/corelib/tools/qregexp/tst_qregexp.cpp @@ -79,8 +79,8 @@ private slots: void reentrancy(); void threadsafeEngineCache(); - void QTBUG_7049_data(); - void QTBUG_7049(); + void posAndCapConsistency_data(); + void posAndCapConsistency(); void interval(); }; @@ -1237,7 +1237,9 @@ void tst_QRegExp::operator_eq() } } -void tst_QRegExp::QTBUG_7049_data() +// This test aims to ensure that the values returned by pos() and cap() +// are consistent. +void tst_QRegExp::posAndCapConsistency_data() { QTest::addColumn("reStr"); QTest::addColumn("text"); @@ -1297,7 +1299,7 @@ void tst_QRegExp::QTBUG_7049_data() } -void tst_QRegExp::QTBUG_7049() +void tst_QRegExp::posAndCapConsistency() { QFETCH( QString, reStr ); QFETCH( QString, text ); -- cgit v1.2.3