testfileset('add string', "foo$/", ['bar'], 1, "foo$/bar$/");
testfileset('keep string', "foo$/bar$/", ['foo'], 0, "foo$/bar$/");
testfileset('keep first', "foo$/FOO$/foo$/", ['foo'], 1, "foo$/FOO$/");
-testfileset('replace string', "$/0$/1$/2$/", [0 => 3], 2, "$/1$/2$/3$/");
+testfileset('replace string', "$/0$/1$/2$/", ['0' => 3], 2, "$/1$/2$/3$/");
testfileset('keep regex', "foo$/hi$/$/", [qr/./ => 'hi'], 1, "hi$/$/");
testfileset('add new array', ".$/", ['' => ['foo','.']], 2, ".$/foo$/.$/");