X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FSub-Nary.git;a=blobdiff_plain;f=t%2F15-misc-xs.t;h=80de3c5a02b9c198d7436964eecb4addf4ec3f1b;hp=bd6baacc1d70327a48de9dd925ef61b9de0a9f4a;hb=972e76e13b6f6e85c20493bddba2d1fd71fd57f8;hpb=429a59ef0920be32c4263b67fc0a32b542ae34be diff --git a/t/15-misc-xs.t b/t/15-misc-xs.t index bd6baac..80de3c5 100644 --- a/t/15-misc-xs.t +++ b/t/15-misc-xs.t @@ -23,11 +23,11 @@ is_deeply(scale(1, {}), { 0 => 1 }, 'scale const, empty-ref'); *add = *Sub::Nary::add{CODE}; -is_deeply(add('list'), { list => 1 }, 'add list'); -is_deeply(add(1, 'list'), { list => 1 }, 'add const, list'); -is_deeply(add({ }, 'list'), { list => 1 }, 'add empty-ref, list'); -is_deeply(add({ 1 => 1 }, 'list'), { list => 1 }, 'add ref, list'); -is_deeply(add({ 1 => 1 }, 1), { 1 => 2 }, 'add ref, prev-const'); +is_deeply(add('list'), { list => 1 }, 'add list'); +is_deeply(add(1, 'list'), { 1 => 1, list => 1 }, 'add const, list'); +is_deeply(add({ }, 'list'), { list => 1 }, 'add empty-ref, list'); +is_deeply(add({ 1 => 1 }, 'list'), { 1 => 1, list => 1 }, 'add ref, list'); +is_deeply(add({ 1 => 1 }, 1), { 1 => 2 }, 'add ref, prev-const'); *cumulate = *Sub::Nary::cumulate{CODE};