54 lines
774 B
Meson
54 lines
774 B
Meson
test_exe = executable(
|
|
'iosifovitch-basic-tests',
|
|
files(['basic-tests.cpp']),
|
|
dependencies: [iosifovitch_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']
|
|
) |