ECHO: "----- Lookup of 1 byte into 1 byte"
ECHO: "Expect [0] for search(a, aaaa)=[0]. OK"
ECHO: "Expect [0] for search(a, aaaa, 1)=[0]. OK"
ECHO: "Expect [0, 0] for search(aa, aaaa)=[0, 0]. OK"
ECHO: "Expect [0, 0] for search(aa, aaaa, 1)=[0, 0]. OK"
ECHO: "Expect [[0, 1, 2, 3]] for search(a, aaaa, 0)=[[0, 1, 2, 3]]. OK"
ECHO: "Expect [[0, 1]] for search(a, aaaa, 2)=[[0, 1]]. OK"
ECHO: "Expect [[0, 1, 2]] for search(a, aaaa, 3)=[[0, 1, 2]]. OK"
ECHO: "Expect [[0, 1, 2, 3]] for search(a, aaaa, 4)=[[0, 1, 2, 3]]. OK"
ECHO: "Expect [[0, 1, 2, 3], [0, 1, 2, 3]] for search(aa, aaaa, 0)=[[0, 1, 2, 3], [0, 1, 2, 3]]. OK"
ECHO: "Expect [] for search(b, aaaa)=[]. OK"
ECHO: "Expect [] for search(b, aaaa, 1)=[]. OK"
ECHO: "Expect [[]] for search(b, aaaa, 0)=[[]]. OK"
ECHO: "Expect [[]] for search(b, aaaa, 2)=[[]]. OK"
ECHO: "Expect [] for search(bb, aaaa)=[]. OK"
ECHO: "Expect [] for search(bb, aaaa, 1)=[]. OK"
ECHO: "Expect [[], []] for search(bb, aaaa, 0)=[[], []]. OK"
ECHO: "Expect [[], []] for search(bb, aaaa, 2)=[[], []]. OK"
ECHO: "Expect [] for search(, aaaa)=[]. OK"
ECHO: "Expect [] for search(, )=[]. OK"
ECHO: "Expect [] for search(a, )=[]. OK"
ECHO: "----- Lookup of multi-byte into 1 byte"
ECHO: "Expect [] for search(Л, aaaa)=[]. OK"
ECHO: "Expect [] for search(🂡, aaaa)=[]. OK"
ECHO: "Expect [[]] for search(Л, aaaa, 0)=[[]]. OK"
ECHO: "Expect [[]] for search(🂡, aaaa, 0)=[[]]. OK"
ECHO: "Expect [] for search(ЛЛ, aaaa)=[]. OK"
ECHO: "Expect [] for search(🂡🂡, aaaa)=[]. OK"
ECHO: "Expect [[], []] for search(ЛЛ, aaaa, 0)=[[], []]. OK"
ECHO: "Expect [[], []] for search(🂡🂡, aaaa, 0)=[[], []]. OK"
ECHO: "----- Lookup of 1-byte into multi-byte"
ECHO: "Expect [] for search(a, ЛЛЛЛ)=[]. OK"
ECHO: "Expect [] for search(a, 🂡🂡🂡🂡)=[]. OK"
ECHO: "Expect [] for search(a, ЛЛЛЛ, 1)=[]. OK"
ECHO: "Expect [[]] for search(a, 🂡🂡🂡🂡, 0)=[[]]. OK"
ECHO: "Expect [[]] for search(a, 🂡🂡🂡🂡, 2)=[[]]. OK"
ECHO: "----- Lookup of 1-byte into mixed multi-byte"
ECHO: "Expect [0] for search(a, aЛaЛaЛaЛa)=[0]. OK"
ECHO: "Expect [0] for search(a, a🂡a🂡a🂡a🂡a)=[0]. OK"
ECHO: "Expect [0] for search(a, a🂡Л🂡a🂡Л🂡a)=[0]. OK"
ECHO: "Expect [[0, 2, 4, 6, 8]] for search(a, aЛaЛaЛaЛa, 0)=[[0, 2, 4, 6, 8]]. OK"
ECHO: "Expect [[0, 2, 4, 6, 8]] for search(a, a🂡a🂡a🂡a🂡a, 0)=[[0, 2, 4, 6, 8]]. OK"
ECHO: "Expect [[0, 4, 8]] for search(a, a🂡Л🂡a🂡Л🂡a, 0)=[[0, 4, 8]]. OK"
ECHO: "----- Lookup of 2-byte into 2-byte"
ECHO: "Expect [0] for search(Л, ЛЛЛЛ)=[0]. OK"
ECHO: "Expect [[0, 1, 2, 3]] for search(Л, ЛЛЛЛ, 0)=[[0, 1, 2, 3]]. OK"
ECHO: "----- Lookup of 2-byte into 4-byte"
ECHO: "Expect [] for search(Л, 🂡🂡🂡🂡)=[]. OK"
ECHO: "----- Lookup of 4-byte into 4-byte"
ECHO: "Expect [0] for search(🂡, 🂡🂡🂡🂡)=[0]. OK"
ECHO: "Expect [[0, 1, 2, 3]] for search(🂡, 🂡🂡🂡🂡, 0)=[[0, 1, 2, 3]]. OK"
ECHO: "----- Lookup of 4-byte into 2-byte"
ECHO: "Expect [] for search(🂡, ЛЛЛЛ)=[]. OK"
ECHO: "----- Lookup of 2-byte into mixed multi-byte"
ECHO: "Expect [1] for search(Л, aЛaЛaЛaЛa, 1)=[1]. OK"
ECHO: "Expect [] for search(Л, a🂡a🂡a🂡a🂡a, 1)=[]. OK"
ECHO: "Expect [2] for search(Л, a🂡Л🂡a🂡Л🂡a, 1)=[2]. OK"
ECHO: "Expect [[1, 3, 5, 7]] for search(Л, aЛaЛaЛaЛa, 0)=[[1, 3, 5, 7]]. OK"
ECHO: "Expect [[]] for search(Л, a🂡a🂡a🂡a🂡a, 0)=[[]]. OK"
ECHO: "Expect [[2, 6]] for search(Л, a🂡Л🂡a🂡Л🂡a, 0)=[[2, 6]]. OK"
ECHO: "----- Lookup of 4-byte into mixed multi-byte"
ECHO: "Expect [] for search(🂡, aЛaЛaЛaЛa, 1)=[]. OK"
ECHO: "Expect [1] for search(🂡, a🂡a🂡a🂡a🂡a, 1)=[1]. OK"
ECHO: "Expect [[]] for search(🂡, aЛaЛaЛaЛa, 0)=[[]]. OK"
ECHO: "Expect [[1, 3, 5, 7]] for search(🂡, a🂡a🂡a🂡a🂡a, 0)=[[1, 3, 5, 7]]. OK"
ECHO: "Expect [[1, 3, 5, 7]] for search(🂡, a🂡Л🂡a🂡Л🂡a, 0)=[[1, 3, 5, 7]]. OK"
ECHO: "----- Lookup of mixed multi-byte into mixed multi-byte"
ECHO: "Expect [[0, 2, 4, 6, 8], [1, 3, 5, 7], []] for search(aЛ🂡, aЛaЛaЛaЛa, 0)=[[0, 2, 4, 6, 8], [1, 3, 5, 7], []]. OK"
ECHO: "Expect [[0, 2, 4, 6, 8], [], [1, 3, 5, 7]] for search(aЛ🂡, a🂡a🂡a🂡a🂡a, 0)=[[0, 2, 4, 6, 8], [], [1, 3, 5, 7]]. OK"
ECHO: "Expect [[0, 4, 8], [2, 6], [1, 3, 5, 7]] for search(aЛ🂡, a🂡Л🂡a🂡Л🂡a, 0)=[[0, 4, 8], [2, 6], [1, 3, 5, 7]]. OK"
ECHO: "Expect [[1, 3, 5, 7], [0, 4, 8], [2, 6]] for search(🂡aЛ, a🂡Л🂡a🂡Л🂡a, 0)=[[1, 3, 5, 7], [0, 4, 8], [2, 6]]. OK"
