From ac3fc531ff5b0c512cb0bca53fb118d8a7a749b8 Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Mon, 14 Aug 2023 19:43:31 +0200 Subject: [PATCH] test that discovery of file names with UTF-8 is working Signed-off-by: Matthieu Gallien --- test/testsyncengine.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/testsyncengine.cpp b/test/testsyncengine.cpp index f4c4c0236..24cb3e751 100644 --- a/test/testsyncengine.cpp +++ b/test/testsyncengine.cpp @@ -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) -- 2.30.2