From 83d164c2132ae7bce908ddaec6970eb691255625 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 17 Jan 2026 08:42:16 -1000 Subject: [PATCH] make sure new stringref functions work --- tests/integration/fixtures/select_stringref_trigger.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/fixtures/select_stringref_trigger.yaml b/tests/integration/fixtures/select_stringref_trigger.yaml index 2ee64741fd..8a391e509e 100644 --- a/tests/integration/fixtures/select_stringref_trigger.yaml +++ b/tests/integration/fixtures/select_stringref_trigger.yaml @@ -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