No Tautological Test

A tautological test can pass by comparing the code’s result with itself, even when that result is wrong. A useful test checks behavior against an expected result, such as a value from the requirements. The rule below focuses on testing meaningful behavior.

The rule

## Testing

- Test observable behavior or meaningful invariants, not repeated implementation logic.