function take actual as the first param, then expected