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.
This commit is contained in:
Vadim Zeitlin 2023-05-04 17:06:02 +01:00
parent 5e3c2fb1c6
commit a2e3dd563e

View file

@ -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")