I'm reading about Property based testing using Scala language. In this slide, they present this concept: For proving function a+b
is true. we just only to prove those statements are true on random data:
- a + b = b + a
- a + 0 = a
- a + 1 + 1 = a + 2
My question is: Which methodologies for checking that our test cases are enough, and can cover all cases on different data. For example on previous example, how can we sure that after our three properties run correctly, we can sure that our implementation is right.
3.
does not look correct – stark