Adds corner case tests for pattern scanning

Adds new test cases to cover additional scenarios for pattern scanning, including tests for leading/trailing whitespace and spacing variations to ensure robustness.
This commit is contained in:
2025-10-04 18:43:05 +03:00
parent 064edf9ef1
commit 160b51da94
3 changed files with 44 additions and 1 deletions

View File

@@ -28,6 +28,7 @@ namespace omath
start = end != pattern_string.end() ? std::next(end) : end;
continue;
}
if (byte_str == "?" || byte_str == "??")
{
pattern.emplace_back(std::nullopt);