ref: 8e1bb5d4fc204ce149ceb545aef7b783d73641bc
dir: /lib/regex/test/search.myr/
use std use "testmatch" const main = { var s : byte[:] s = std.strjoin([ "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", ][:], "") testsearch("bc", "Abcd", `std.Some [][:]) testsearch("Abc", "Abc", `std.Some [][:]) testsearch("(bc)", "Abc", `std.Some ["bc"][:]) testsearch("(bc.*)", "Abcde", `std.Some ["bcde"][:]) testsearch("(b.*c)", "ABbasdfcrap", `std.Some ["basdfc"][:]) }