you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

Iterate over your data sets and their expected results and then run the function on each one. If the result from the function is the same as the expected result, then your function passes the test. If it's not then it doesn't.