fix assertIs for infinity