fixed equality test