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('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$/");