summaryrefslogtreecommitdiffstats
path: root/tests/auto/qregexp/tst_qregexp.cpp
diff options
context:
space:
mode:
authorJustin McPherson <justin.mcpherson@nokia.com>2010-08-12 07:12:25 (GMT)
committerJustin McPherson <justin.mcpherson@nokia.com>2010-08-12 07:12:25 (GMT)
commit224d8f7619447a4784da533ac26760ea1e7b9087 (patch)
tree5407614135100025a375acf049ace2074e3e6f11 /tests/auto/qregexp/tst_qregexp.cpp
parente7a19af4430b45f371bb33120f0ed39a2c83b733 (diff)
parentadd9c43407a63c28f1107b9a77e74f6f62593246 (diff)
downloadQt-224d8f7619447a4784da533ac26760ea1e7b9087.zip
Qt-224d8f7619447a4784da533ac26760ea1e7b9087.tar.gz
Qt-224d8f7619447a4784da533ac26760ea1e7b9087.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-multimedia-staging into 4.7
Diffstat (limited to 'tests/auto/qregexp/tst_qregexp.cpp')
-rw-r--r--tests/auto/qregexp/tst_qregexp.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/auto/qregexp/tst_qregexp.cpp b/tests/auto/qregexp/tst_qregexp.cpp
index ea07323..d0d26ee 100644
--- a/tests/auto/qregexp/tst_qregexp.cpp
+++ b/tests/auto/qregexp/tst_qregexp.cpp
@@ -105,6 +105,7 @@ private slots:
void QTBUG_7049_data();
void QTBUG_7049();
+ void interval();
};
// Testing get/set functions
@@ -1426,5 +1427,22 @@ void tst_QRegExp::QTBUG_7049()
QCOMPARE( re.cap(2), cap2 );
}
+void tst_QRegExp::interval()
+{
+ {
+ QRegExp exp("a{0,1}");
+ QVERIFY(exp.isValid());
+ }
+ {
+ QRegExp exp("a{1,1}");
+ QVERIFY(exp.isValid());
+ }
+ {
+ QRegExp exp("a{1,0}");
+ QVERIFY(!exp.isValid());
+ }
+}
+
+
QTEST_APPLESS_MAIN(tst_QRegExp)
#include "tst_qregexp.moc"