Test char func