Skip to content

Commit

Permalink
Make the unit test more explicitly test result size and use a proper …
Browse files Browse the repository at this point in the history
…attribute list

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14400 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Oct 18, 2010
1 parent c179366 commit d375c5b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/src/core/testqgsvectorlayer.cpp
Expand Up @@ -146,15 +146,18 @@ class TestQgsVectorLayer: public QObject
{
QgsVectorDataProvider * myProvider = mpNonSpatialLayer->dataProvider();
QgsFeature f;
QgsAttributeList myList;
myList << 0 << 1 << 2 << 3;
int myCount = 0;
myProvider->select();
myProvider->select( myList );
while ( myProvider->nextFeature( f ) )
{
qDebug("Getting feature from provider");
myCount++;
}
QVERIFY( myCount > 10);
QVERIFY( myCount == 3 );
};

void QgsVectorLayerstorageType()
{

Expand Down

0 comments on commit d375c5b

Please sign in to comment.