2 #include <ept/config.h>
7 using namespace ept::core;
15 template< desktop::PropertyId P,
typename L >
18 while ( !l.empty() ) {
19 assert_eq( l.head().template get< P >(), check[ i ] );
26 template< desktop::PropertyId P,
typename L >
28 checkIteration2< P >( c, check, list::sort( l ) );
32 const char *check[] = {
"Kdict",
"foo",
"XQF",
"X-Server" };
33 checkIteration< desktop::Name >(
38 const char *check[] = {
39 "{ KDE, Qt, Utility }",
40 "{ KDE, Qt, Utility }",
41 "{ Application, Game, X-SuSE-Core-Game }",
42 "{ KDE, Qt, X-KDE-information }",
44 checkIteration< desktop::Group >(
49 const char *check[] = {
"Kdict",
"foo" };
50 checkIteration< desktop::Name >(
51 2, check, desk.group(
"{ KDE, Qt, Utility }" ) );
void checkIteration2(int c, const char **check, L l)
Definition: desktop.test.h:16
Definition: desktop.h:112
desktop::Source desk
Definition: desktop.test.h:10
Test groups()
Definition: desktop.test.h:48
ept::Token t
Definition: desktop.test.h:11
Test emptyGroupList()
Definition: desktop.test.h:54
void checkIteration(int c, const char **check, L l)
Definition: desktop.test.h:27
TestDesktop()
Definition: desktop.test.h:13
Definition: desktop.h:191
Test iteration()
Definition: desktop.test.h:31
Definition: desktop.test.h:9
Test groupProperty()
Definition: desktop.test.h:37
bool empty() const
Definition: desktop.h:132