Changed print to assert