diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2014-09-18 18:49:36 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2014-09-18 19:04:29 +0300 |
commit | 9e7009bf23e2fce52829e195c4c9c29c3f2286fe (patch) | |
tree | f6e6013bb5c09b7b5dad97c34d1c64308d1403a3 /test cases/common/63 array methods/meson.build | |
parent | a8a696c55f1bf5ab292c8f3a1440af883952c0bb (diff) | |
download | meson-9e7009bf23e2fce52829e195c4c9c29c3f2286fe.zip meson-9e7009bf23e2fce52829e195c4c9c29c3f2286fe.tar.gz meson-9e7009bf23e2fce52829e195c4c9c29c3f2286fe.tar.bz2 |
Added array methods.
Diffstat (limited to 'test cases/common/63 array methods/meson.build')
-rw-r--r-- | test cases/common/63 array methods/meson.build | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/test cases/common/63 array methods/meson.build b/test cases/common/63 array methods/meson.build new file mode 100644 index 0000000..cdda41d --- /dev/null +++ b/test cases/common/63 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 |