check number of passed function parameters

assert value us correctly promoted for function call