Skip to content

Commit 979f9c0

Browse files
committed
fixup set lookup output on failure
1 parent 2e0069c commit 979f9c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/host/fs/test_fs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
all copies or substantial portions of the Software.
1414
*/
1515

16-
#include <catch.hpp>
16+
#include <ArduinoCatch.hpp>
1717
#include <map>
1818
#include <FS.h>
1919
#include "../common/spiffs_mock.h"

tests/host/fs/test_fs.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ static std::set<String> listDir (const char* path)
2121
std::set<String> result;
2222
Dir dir = FSTYPE.openDir(path);
2323
while (dir.next()) {
24-
REQUIRE(result.find(dir.fileName()) == std::end(result));
24+
REQUIRE(!result.count(dir.fileName()));
2525
result.insert(dir.fileName());
2626
}
2727
return result;

0 commit comments

Comments
 (0)