Move & add tests

This commit is contained in:
Andras Schmelczer 2025-04-05 14:46:34 +01:00
commit a1b3b61c43
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
21 changed files with 233 additions and 303 deletions

View file

@ -0,0 +1,27 @@
# Both inserted the same prefix; this should get deduplicateed
parent: "hi "
left: "hi there "
right: "hi there my friend "
expected: "hi there my friend "
---
# The prefix of the 2nd appears on the 1st so it shouldn't get duplicatelicated
parent: "hi "
left: "hi there you "
right: "hi there my friend "
expected: "hi there my friend you "
---
parent: a
left: a b c
right: a b c d
expected: a b c d
---
parent: a
left: abc
right: abcd
expected: abcabcd