use strict;
use warnings;
-use Test::More tests => 13;
+use Test::More tests => 16;
use Test::NoWarnings;
use autodie;
testfileset('replace all', $BASICBODY, ['', qr/^re/], 3, "noremove$/.$/$/");
testfileset('keep first', "foo$/bar$/foo$/", ['foo'], 1, "foo$/bar$/");
-is(remove_tree($target), 11, 'no unexpected files');
+testfileset('add new array', ".$/", [['foo','.'], ''], 2, ".$/foo$/.$/");
+testfileset('replace by array', "$/foo$/.$/", [['foo',''], ''], 3, "foo$/.$/foo$/$/");
+testfileset('partial add', "foo$/$/", [['foo','.'], 'foo'], 1, "foo$/$/.$/");
+
+is(remove_tree($target), 14, 'no unexpected files');