iosifovich/tests/meson.build

75 lines
1.2 KiB
Meson

test_exe = executable(
'iosifovitch-basic-tests',
files(['basic-tests.cpp']),
dependencies: [iosifovich_dep]
)
test(
'short equal strings',
test_exe,
args: ['hello', 'hello', '0']
)
test(
'empty strings',
test_exe,
args: ['', '', '0']
)
test(
'empty string and non-empty string',
test_exe,
args: ['', 'hello', '5']
)
test(
'non-empty string and empty string',
test_exe,
args: ['hello', '', '5']
)
test(
'non-empty string and non-empty string',
test_exe,
args: ['hello', 'm', '5']
)
test(
'non-empty string and prefix string',
test_exe,
args: ['hello', 'he', '3']
)
test(
'non-empty string and infix string',
test_exe,
args: ['hello', 'teller', '3']
)
test(
'non-empty string and postfix string',
test_exe,
args: ['hello', 'millo', '2']
)
test(
'long a and b',
test_exe,
args: ['aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa', 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb', '39']
)
test(
'long a and b, with one character shared',
test_exe,
args: ['aaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa', 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb', '38']
)
test(
'long a and b, with uneven lengths',
test_exe,
args: ['aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa', 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb', '39']
)