test cases/common/63 array arithmetic/meson.build
raw| 1 | project('array arithmetic') |
| 2 | |
| 3 | array1 = ['foo', 'bar'] |
| 4 | array2 = ['qux', 'baz'] |
| 5 | |
| 6 | if array1 + array2 != ['foo', 'bar', 'qux', 'baz'] |
| 7 | error('Array concatenation is broken') |
| 8 | endif |
| 9 | if array2 + array1 != ['qux', 'baz', 'foo', 'bar'] |
| 10 | error('Array concatenation is broken') |
| 11 | endif |
| 12 | |
| 13 | if array1 + array1 + array1 != ['foo', 'bar', 'foo', 'bar', 'foo', 'bar'] |
| 14 | error('Many-array concatenation is broken') |
| 15 | endif |