From 1203bfc888740c50f4e26af7ef6aa3c965bd4320 2009-04-14 15:16:35 From: florianlink Date: 2009-04-14 15:16:35 Subject: [PATCH] fixed test case git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@56 ea8d5007-eb21-0410-b261-ccb3ea6e24a9 --- diff --git a/tests/PythonQtTests.cpp b/tests/PythonQtTests.cpp index e35d8c6..7585be7 100644 --- a/tests/PythonQtTests.cpp +++ b/tests/PythonQtTests.cpp @@ -255,9 +255,8 @@ void PythonQtTestApi::testVariables() QSet s; // check that at least these three variables are set s << "obj" << "someObject" << "someValue"; - QString a; - foreach (a, l) { - QVERIFY(s.contains(a)); + foreach (QString value, s) { + QVERIFY(l.indexOf(value)!=-1); } // insert a second time!