[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/work/nepomuk-kde/tests
From: Sebastian Trueg <sebastian () trueg ! de>
Date: 2006-10-26 13:40:10
Message-ID: 1161870010.965760.1771.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 599282 by trueg:
Added StatementListIterator test.
M +11 -0 tripleservicetest.cpp
--- branches/work/nepomuk-kde/tests/tripleservicetest.cpp #599281:599282
@@ -17,6 +17,7 @@
#include <knep/registry.h>
#include <knep/service.h>
#include <knep/services/tripleservice.h>
+#include <knep/services/statementlistiterator.h>
using namespace Nepomuk::Backbone;
using namespace Nepomuk::Backbone::Services;
@@ -59,6 +60,16 @@
QCOMPARE( 1, list.count );
QEXPECT_FAIL( "", "listStatements not implemented yet", Continue );
QCOMPARE( s_theStatement, list.statements.first() );
+
+ StatementListIterator it( list, &tsw );
+ QEXPECT_FAIL( "", "listStatements not implemented yet", Continue );
+ QCOMPARE( list.statements.count(), it.count() );
+ int cnt = 0;
+ while( it.hasNext() ) {
+ ++cnt;
+ QCOMPARE( s_theStatement, it.next() );
+ }
+ QCOMPARE( cnt, it.count() );
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic