From a2e3dd563eb863023d6e970a2ecab654a2bd6e33 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 4 May 2023 17:06:02 +0100 Subject: [PATCH] Check that we retrieve the same numbers of files in wxFTP test GetFilesList() and GetDirList() should return the same number of lines, normally, so check for this. --- tests/uris/ftp.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/uris/ftp.cpp b/tests/uris/ftp.cpp index 751a2184da..257e4cda7c 100644 --- a/tests/uris/ftp.cpp +++ b/tests/uris/ftp.cpp @@ -73,7 +73,11 @@ TEST_CASE("FTP", "[net][.]") // test NLIST and LIST wxArrayString files; CHECK( ftp.GetFilesList(files) ); - CHECK( ftp.GetDirList(files) ); + + wxArrayString dirs; + CHECK( ftp.GetDirList(dirs) ); + + CHECK( files.size() == dirs.size() ); } SECTION("Download")