diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2011-11-24 17:34:51 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-11-25 07:56:16 +0100 |
commit | e08410ab8db3d7cabf4ef2fc4de40bb6da6d6fef (patch) | |
tree | 9d6e154364039ab6cbc7a789ef33b7e0ce038e51 /tests/auto/corelib/tools/qregexp/tst_qregexp.cpp | |
parent | 489a39aacc102e46a5b3fffd5839ed694bb7214f (diff) |
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 <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/auto/corelib/tools/qregexp/tst_qregexp.cpp')
-rw-r--r-- | tests/auto/corelib/tools/qregexp/tst_qregexp.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
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<QString>("reStr"); QTest::addColumn<QString>("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 ); |