summaryrefslogtreecommitdiffstats
path: root/tests/indextest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/indextest.cpp')
-rw-r--r--tests/indextest.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/indextest.cpp b/tests/indextest.cpp
index ce1fde7..1676ecb 100644
--- a/tests/indextest.cpp
+++ b/tests/indextest.cpp
@@ -58,6 +58,15 @@ private slots:
58 [](const Index::Error &error){ qWarning() << "Error: "; }); 58 [](const Index::Error &error){ qWarning() << "Error: "; });
59 QCOMPARE(values.size(), 0); 59 QCOMPARE(values.size(), 0);
60 } 60 }
61 {
62 QList<QByteArray> values;
63 index.lookup(QByteArray("key"), [&values](const QByteArray &value) {
64 values << value;
65 },
66 [](const Index::Error &error){ qWarning() << "Error: "; },
67 true);
68 QCOMPARE(values.size(), 3);
69 }
61 } 70 }
62}; 71};
63 72