[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:       2011-01-20 17:22:48
Message-ID: 20110120172248.CC62BAC8B7 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1215993 by trueg:

Match tests to changes in literalterm

 M  +7 -7      queryparsertest.cpp  


--- trunk/KDE/kdelibs/nepomuk/test/queryparsertest.cpp #1215992:1215993
@@ -108,8 +108,8 @@
 
     // simple literal queries
     QTest::newRow( "simple literal query" ) << QString( "Hello" ) << Query( \
                LiteralTerm( "Hello" ) );
-    QTest::newRow( "literal with spaces without quotes" ) << QString( "Hello World" \
                ) << Query( AndTerm( LiteralTerm("Hello"), LiteralTerm("World" ) ) );
-    QTest::newRow( "literal with spaces with quotes" ) << QString( "'Hello World'" ) \
<< Query( LiteralTerm( "Hello World" ) ); +    QTest::newRow( "literal with spaces \
without quotes" ) << QString( "Hello World" ) << Query( LiteralTerm("Hello AND World" \
) ); +    QTest::newRow( "literal with spaces with quotes" ) << QString( "'Hello \
World'" ) << Query( LiteralTerm( "'Hello World'" ) );  
     // comparison queries
     QTest::newRow( "simple field query" )    << QString( "hastag:nepomuk" )
@@ -135,8 +135,8 @@
     QTest::newRow( "field negation" ) << QString( "-label:nepomuk" ) << Query( \
NegationTerm::negateTerm( ComparisonTerm( QUrl("onto:/label"), LiteralTerm( "nepomuk" \
) ) ) );  
     // and query
-    QTest::newRow( "and: two literals" )          << QString( "Hello World" ) << \
                Query( AndTerm( LiteralTerm( "Hello" ), LiteralTerm( "World" ) ) );
-    QTest::newRow( "and: two literals with AND" ) << QString( "Hello AND World" ) << \
Query( AndTerm( LiteralTerm( "Hello" ), LiteralTerm( "World" ) ) ); +    \
QTest::newRow( "and: two literals" )          << QString( "Hello World" ) << Query( \
LiteralTerm( "Hello AND World" ) ); +    QTest::newRow( "and: two literals with AND" \
) << QString( "Hello AND World" ) << Query( LiteralTerm( "Hello AND World" ) ) ;  
     // or queries
     QTest::newRow( "or: two literals" )          << QString( "Hello OR World" ) << \
Query( OrTerm( LiteralTerm( "Hello" ), LiteralTerm( "World" ) ) ); @@ -161,9 +161,9 \
@@  
     // simple literal queries
     QTest::newRow( "simple literal query" ) << QString( "Hello" ) << Query( \
                LiteralTerm( "Hello*" ) );
-    QTest::newRow( "simple literal query" ) << QString( "\"Hello\"" ) << Query( \
                LiteralTerm( "Hello" ) );
-    QTest::newRow( "literal with spaces without quotes" ) << QString( "Hello World" \
                ) << Query( AndTerm( LiteralTerm("Hello*"), LiteralTerm("World*" ) ) \
                );
-    QTest::newRow( "literal with spaces with quotes" ) << QString( "'Hello World'" ) \
<< Query( LiteralTerm( "Hello World" ) ); +    QTest::newRow( "simple literal query" \
) << QString( "\"Hello\"" ) << Query( LiteralTerm( "\"Hello\"" ) ); +    \
QTest::newRow( "literal with spaces without quotes" ) << QString( "Hello World" ) << \
Query( LiteralTerm("Hello* AND World*" ) ); +    QTest::newRow( "literal with spaces \
with quotes" ) << QString( "'Hello World'" ) << Query( LiteralTerm( "'Hello World'" ) \
);  }
 
 


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

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