]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
test that discovery of file names with UTF-8 is working
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Mon, 14 Aug 2023 17:43:31 +0000 (19:43 +0200)
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>
Wed, 16 Aug 2023 08:44:37 +0000 (10:44 +0200)
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
test/testsyncengine.cpp

index f4c4c023664ec84e9d1f106c24b3e36cbb1eabed..24cb3e75113ede0e1fab5b39c8a9452452fc7dd1 100644 (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)