tobogganSe connecter

louise

Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.

packages/gen: property tests for string.find vs a naive scan

`string.find` (and `string.contains`, which shares the kernel) against
a naive byte-level find over std/bytes, on generated strings: small
alphabets (dense matches), needles cut from the haystack (sure hits),
multibyte characters, and long haystacks with short needles (the wide
loop, mostly missing). Seeded, so a failure reproduces. Directed cases
cover the empty needle, overlaps and the dispatch boundaries. Issue #380.

olivier · il y a 3 sem. · cd59bbefdafa3c8feac37fa04ad27737c7442088

Parents 5677f83

1 fichiers modifiés, 161 ajouts, 0 suppressions

Apackages/gen/test/string_find_test.lse+161−0