make sure new stringref functions work

This commit is contained in:
J. Nick Koston
2026-01-17 08:42:16 -10:00
parent 1550a6af72
commit 83d164c213

View File

@@ -42,13 +42,13 @@ select:
ESP_LOGI("test", "Length: %d", (int)x.length());
# Test 6: StringRef.find() method with substring
- lambda: |-
if (x.find("Option") != StringRef::npos) {
if (x.find("Option") != StringRef::NPOS) {
ESP_LOGI("test", "Found 'Option' in value");
}
# Test 7: StringRef.find() method with character
- lambda: |-
size_t space_pos = x.find(' ');
if (space_pos != StringRef::npos) {
if (space_pos != StringRef::NPOS) {
ESP_LOGI("test", "Space at position: %d", (int)space_pos);
}
# Test 8: StringRef.substr() method