summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/testpicture.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/testpicture.cpp b/tests/testpicture.cpp
index 5dd261316..1833a2bcf 100644
--- a/tests/testpicture.cpp
+++ b/tests/testpicture.cpp
@@ -44,14 +44,12 @@ void TestPicture::addPicture()
QVERIFY(pic1->longitude.udeg == 11334500);
QVERIFY(pic2->offset.seconds == 1321);
- QByteArray hash1 = hashFile(localFilePath(pic1->filename));
- QByteArray hash2 = hashFile(localFilePath(pic2->filename));
- learnHash(pic1->filename, PIC1_NAME, hash1);
- learnHash(pic2->filename, PIC2_NAME, hash2);
+ hashPicture(pic1->filename);
+ hashPicture(pic2->filename);
+ learnPictureFilename(pic1->filename, PIC1_NAME);
+ learnPictureFilename(pic2->filename, PIC2_NAME);
QCOMPARE(hashstring(pic1->filename), PIC1_HASH);
QCOMPARE(hashstring(pic2->filename), PIC2_HASH);
- QCOMPARE(hashstring(PIC1_NAME), PIC1_HASH);
- QCOMPARE(hashstring(PIC2_NAME), PIC2_HASH);
QCOMPARE(localFilePath(pic1->filename), QString(PIC1_NAME));
QCOMPARE(localFilePath(pic2->filename), QString(PIC2_NAME));
}