t27.aiРусский

Compiles is not the same as correct

You will learn

Why green checks are not proof, and how to catch code that compiles and is wrong.

A compiler that accepts your code only tells you the code is well formed. It does not tell you the code means what you meant. This recording shows a tool that found specs which compile, pass every gate and are still read wrongly. The lesson for hardware is sharper still: a bug in silicon cannot be patched. Plant a bug yourself in the mutation recording and watch the tests catch it.

Try it

Open the mutation recording under Also try and count how many planted bugs the tests caught.

Open the interactive lesson →

tri misread: code that compiles and is wrong
tri misread: code that compiles and is wrong ↗

Open the lesson's spec in the player: specs/tutorial/03_operators.t27

All lessons