Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. *properties of sort*
  2.  
  3. When we are testing a function with property-based testing, we want to make sure our tests are not re-implementing the function we are testing. On the contrary, we want the test to be simpler and more obviously correct.
  4.  
  5. It's often challenging to come up with properties, especially if you do know how the function works. This week, we will face that challenge head on.
  6.  
  7. The challenge this week is to come up with at least three properties we would like to assert on the sort function. You can write them however you like. You can write them in English, or if you want, as test.check properties. What's important is the thought process behind it.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement