test that discovery of file names with UTF-8 is working

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
Matthieu Gallien 2023-08-14 19:43:31 +02:00
parent f990b23ae7
commit ac3fc531ff
No known key found for this signature in database
GPG key ID: 7D0F74F05C22F553

View file

@ -1717,6 +1717,15 @@ private slots:
QVERIFY(fakeFolder.syncOnce());
QCOMPARE(spy.count(), 1);
}
void testFileDownloadWithUnicodeCharacterInName() {
FakeFolder fakeFolder{FileInfo::A12_B12_C12_S12()};
ItemCompletedSpy completeSpy(fakeFolder);
fakeFolder.remoteModifier().insert("A/abcdęfg.txt");
fakeFolder.syncOnce();
QVERIFY(itemDidCompleteSuccessfully(completeSpy, "A/abcdęfg.txt"));
QCOMPARE(fakeFolder.currentLocalState(), fakeFolder.currentRemoteState());
}
};
QTEST_GUILESS_MAIN(TestSyncEngine)