Comment

Comment by enraged_camel

>> If I have a function add_nums that takes 2 numbers and adds them, there are like infinite inputs that can be tested.

That's what formal verification is for: you generate math statements from the code, and then prove them.

Testing is for covering the most common scenarios and likely edge cases. 100% coverage means every line of code in the app is executed when your test suite runs. It is useful as a bare minimum, but by itself does not guarantee that there are no bugs.

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton