Skip to content

Commit cbd6ab2

Browse files
committed
fixup set lookup output on failure
1 parent 98ac268 commit cbd6ab2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tests/host/core/test_string.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,14 @@ TEST_CASE("String concantenation", "[core][String]")
187187
TEST_CASE("String comparison", "[core][String]")
188188
{
189189
String alpha("I like fish!");
190-
REQUIRE(alpha < "I like tacos!"); // compareTo()
190+
REQUIRE(alpha < "I like tacos!"); // compareTo()
191191
REQUIRE(alpha > "I like cod!");
192192
REQUIRE(alpha >= "I like beef!");
193193
REQUIRE(alpha <= "I like soup!");
194194
REQUIRE(alpha.equalsIgnoreCase("i LiKe FiSh!"));
195195
REQUIRE(!alpha.equalsIgnoreCase("i LiKe FiSh! And ChIPs!"));
196196
REQUIRE(alpha.equalsConstantTime("I like fish!"));
197-
REQUIRE(alpha != "I like fish?"); // equals()
197+
REQUIRE(alpha != "I like fish?"); // equals()
198198
REQUIRE(alpha.startsWith("I like"));
199199
REQUIRE(!alpha.startsWith("I lick"));
200200
REQUIRE(alpha.startsWith("fish", 7));

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)