That was my first thought, they did explicitly write code for the case where the robots needed to kill everyone, that's the whole problem. If you write code, expect it to be run, even if you're totally certain that no one would ever do <insert obviously stupid thing here>.
If the code is there then for it to be merged a unit test must have been passed covering that branch and killing a human. I hope they mocked the human dependency.
View all comments
Show parent comment
4
u/10BillionDreams Mar 15 '22
That was my first thought, they did explicitly write code for the case where the robots needed to kill everyone, that's the whole problem. If you write code, expect it to be run, even if you're totally certain that no one would ever do <insert obviously stupid thing here>.