"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/unittests/check-list.m4" between
argbash-2.9.0.tar.gz and argbash-2.10.0.tar.gz

About: argbash is a bash code generator that can assist you in writing scripts that accept arguments.

check-list.m4  (argbash-2.9.0):check-list.m4  (argbash-2.10.0)
skipping to change at line 24 skipping to change at line 24
m4_list_ifempty([FOO], [m4_fatal([The list is supposed to be non-empty now])],) m4_list_ifempty([FOO], [m4_fatal([The list is supposed to be non-empty now])],)
assert_equals(m4_list_len([FOO]), 1) assert_equals(m4_list_len([FOO]), 1)
m4_list_append([FOO], [ANTIFUSE(list)]) m4_list_append([FOO], [ANTIFUSE(list)])
m4_list_append([FOO], [BOMB], [BAZ]) m4_list_append([FOO], [BOMB], [BAZ])
assert_equals(m4_quote(m4_list_nth([FOO], 9, x)), [x]) assert_equals(m4_quote(m4_list_nth([FOO], 9, x)), [x])
assert_equals(m4_list_nth([FOO], 4), [BAZ]) assert_equals(m4_list_nth([FOO], 4), [BAZ])
assert_equals(m4_list_nth([FOO], m4_list_indices([FOO], [BAZ])), [BAZ]) assert_equals(m4_list_nth([FOO], m4_list_indices([FOO], [BAZ])), [BAZ])
assert_equals(m4_list_join([FOO], -), [BOMB-ANTIFUSE(list)-BOMB-BAZ]) assert_equals(m4_list_join([FOO], -), [BOMB-ANTIFUSE(list)-BOMB-BAZ])
assert_equals(m4_list_join([FOO], -, ", ', [ and ]), ["BOMB'-"ANTIFUSE(list)'-"B OMB' and "BAZ']) assert_equals(m4_list_join([FOO], -, ", ', [ and ]), ["BOMB'-"ANTIFUSE(list)'-"B OMB' and "BAZ'])
assert_equals(m4_expand([m4_list_join([FOO], [,], ", ', [ , ])]), ["BOMB',"ANTIF USE(list)',"BOMB' , "BAZ']) assert_equals(m4_expand([m4_list_join([FOO], [,], ", ', [ , ])]), ["BOMB',"ANTIF USE(list)',"BOMB' , "BAZ'])
assert_equals(m4_list_format_sequence([FOO], [ and ]), ['BOMB', 'ANTIFUSE(list)'
, 'BOMB' and 'BAZ'])
assert_equals(m4_list_format_sequence([FOO]), ['BOMB', 'ANTIFUSE(list)', 'BOMB',
'BAZ'])
assert_equals(m4_list_format_sequence([FOO], [ and ], ", [ , ]), ["BOMB" , "ANTI
FUSE(list)" , "BOMB" and "BAZ"])
m4_list_append([FOO], [BAZ2]) m4_list_append([FOO], [BAZ2])
assert_equals(m4_list_len([FOO]), 5) assert_equals(m4_list_len([FOO]), 5)
dnl Try a simple sum dnl Try a simple sum
m4_list_append([nums], [1]) m4_list_append([nums], [1])
m4_list_append([nums], [8]) m4_list_append([nums], [8])
m4_list_append([nums],[-5]) m4_list_append([nums],[-5])
m4_list_append([nums],[12]) m4_list_append([nums],[12])
m4_list_append([nums], [0]) m4_list_append([nums], [0])
dnl Sum is ........ 16 dnl Sum is ........ 16
 End of changes. 1 change blocks. 
0 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)