3 # test the MULTICALL macros
4 # Note: as of Oct 2010, there are not yet comprehensive tests
10 use Test::More tests => 4;
16 sub add { $sum += $_++ }
19 XS::APItest::multicall_each \&add, @a;
20 is($sum, 6, "sum okay");
21 is($a[0], 2, "a[0] okay");
22 is($a[1], 3, "a[1] okay");
23 is($a[2], 4, "a[2] okay");