|
|
@ -6,11 +6,16 @@ dict = {'foo' : 'bar', |
|
|
|
|
|
|
|
|
|
|
|
exe = executable('prog', sources : ['prog.c']) |
|
|
|
exe = executable('prog', sources : ['prog.c']) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
i = 0 |
|
|
|
|
|
|
|
|
|
|
|
foreach key, value : dict |
|
|
|
foreach key, value : dict |
|
|
|
test('dict test @0@'.format(key), exe, |
|
|
|
test('dict test @0@'.format(key), exe, |
|
|
|
args : [dict[key], value]) |
|
|
|
args : [dict[key], value]) |
|
|
|
|
|
|
|
i += 1 |
|
|
|
endforeach |
|
|
|
endforeach |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assert(i == 3, 'There should be three elements in that dictionary') |
|
|
|
|
|
|
|
|
|
|
|
empty_dict = {} |
|
|
|
empty_dict = {} |
|
|
|
|
|
|
|
|
|
|
|
foreach key, value : empty_dict |
|
|
|
foreach key, value : empty_dict |
|
|
|