From e75e3976facda7de244fbb9a02eebf0d043ea1c8 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Mon, 26 Apr 2021 16:52:13 +0300 Subject: Condense test directory names. --- test cases/common/56 array methods/meson.build | 46 ++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 test cases/common/56 array methods/meson.build (limited to 'test cases/common/56 array methods') diff --git a/test cases/common/56 array methods/meson.build b/test cases/common/56 array methods/meson.build new file mode 100644 index 000000000..cdda41dbf --- /dev/null +++ b/test cases/common/56 array methods/meson.build @@ -0,0 +1,46 @@ +project('array methods', 'c') + +empty = [] +one = ['abc'] +two = ['def', 'ghi'] +combined = [empty, one, two] + +if empty.contains('abc') + error('Empty is not empty.') +endif + +if one.contains('a') + error('One claims to contain a') +endif + +if not one.contains('abc') + error('One claims to not contain abc.') +endif + +if one.contains('abcd') + error('One claims to contain abcd.') +endif + +if two.contains('abc') + error('Two claims to contain abc.') +endif + +if not two.contains('def') + error('Two claims not to contain def.') +endif + +if not two.contains('ghi') + error('Two claims not to contain ghi.') +endif + +if two.contains('defg') + error('Two claims to contain defg.') +endif + +if not combined.contains('abc') + error('Combined claims not to contain abc.') +endif + +if not combined.contains('ghi') + error('Combined claims not to contain ghi.') +endif -- cgit v1.2.3