[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/nepomuk/test
From:       Sebastian Trueg <sebastian () trueg ! de>
Date:       2010-08-26 11:50:20
Message-ID: 20100826115020.352D9AC857 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1168286 by trueg:

Added simple test for Query::fromQueryUrl which depends on Query::toSearchUrl being correct.

 M  +4 -0      querytest.cpp  


--- trunk/KDE/kdelibs/nepomuk/test/querytest.cpp #1168285:1168286
@@ -424,6 +424,10 @@
 
     // we test without result restrictions which always look the same anyway
     QCOMPARE( query.toSparqlQuery( Query::NoResultRestrictions ).simplified(), queryString );
+
+    // test fromQueryUrl
+    QCOMPARE( Query::fromQueryUrl(query.toSearchUrl()), query );
+    QCOMPARE( Query::fromQueryUrl(query.toSearchUrl(QLatin1String("Hello World"))), query );
 }
 
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic