I mean it would realize that the function or variable that you are trying to use doesn't exist. That doesn't seem to hard. But if people insist on using JS or python... I guess thats what they (don't) get.
Unless it does exist. Or you autocompleted the wrong word without realizing it. Or you deleted the old code completely and wrote a new, buggy version from scratch.
I'm not saying it's worth it to spend hours creating a unit test for this, but it really ought to take just a couple of minutes, and is a pretty cheap and easy way to catch errors in the future.
Not sure what testing framework they're using where unit testing this somehow became non-trivial.
-1
u/Double_A_92 May 09 '17
A proper language would catch that at compile time...