mirror of
https://github.com/inkarkat/vim-ingo-library.git
synced 2026-10-20 05:18:35 +02:00
18 lines
404 B
VimL
18 lines
404 B
VimL
" Test find longest common substrings with a mimimum length.
|
|
|
|
call vimtest#StartTap()
|
|
call vimtap#Plan(2)
|
|
|
|
call vimtap#Is(ingo#list#lcs#FindLongestCommon(
|
|
\ ['myfoobar', 'thefooxy', 'theyfoobitch'], 3),
|
|
\ 'foo',
|
|
\ 'minimumLength reached'
|
|
\)
|
|
call vimtap#Is(ingo#list#lcs#FindLongestCommon(
|
|
\ ['myfoobar', 'thefooxy', 'theyfoobitch'], 4),
|
|
\ '',
|
|
\ 'minimumLength missed'
|
|
\)
|
|
|
|
call vimtest#Quit()
|