I don't mind whiteboard tests, or tests in general, but that is an example of a terrible test.
You want production grade code delivered on the spot? AUTOMATED TESTS?!? I wouldn't want to work for you.
You want production grade code delivered on the spot? AUTOMATED TESTS?!? I wouldn't want to work for you.
Production grade code is, in a big part, a matter of good habits. There's no reason those habits can't show up during a test. Especially when the test is very easy.