Skip to content
Permalink
Browse files

Make the unit test more explicitly test result size and use a proper …

…attribute list

git-svn-id: http://svn.osgeo.org/qgis/trunk@14400 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux
timlinux committed Oct 18, 2010
1 parent 6308416 commit b12fefe92d277668653e2703132a386bdce62d2c
Showing with 5 additions and 2 deletions.
  1. +5 −2 tests/src/core/testqgsvectorlayer.cpp
@@ -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()
{

0 comments on commit b12fefe

Please sign in to comment.
You can’t perform that action at this time.