Add assert for double comparison