We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e0069c commit 979f9c0Copy full SHA for 979f9c0
tests/host/fs/test_fs.cpp
@@ -13,7 +13,7 @@
13
all copies or substantial portions of the Software.
14
*/
15
16
-#include <catch.hpp>
+#include <ArduinoCatch.hpp>
17
#include <map>
18
#include <FS.h>
19
#include "../common/spiffs_mock.h"
tests/host/fs/test_fs.inc
@@ -21,7 +21,7 @@ static std::set<String> listDir (const char* path)
21
std::set<String> result;
22
Dir dir = FSTYPE.openDir(path);
23
while (dir.next()) {
24
- REQUIRE(result.find(dir.fileName()) == std::end(result));
+ REQUIRE(!result.count(dir.fileName()));
25
result.insert(dir.fileName());
26
}
27
return result;
0 commit comments