Just to clean up the logic here a bit, may I suggest replacing lines 391-398 with:

    if (Y.Array.dedupe(array).length < array.length) {
        message = YUITest.Assert._formatMessage(message, "Array contains duplicate(s)");
        YUITest.Assert.fail(message);
    }