UBC-MDS / labzenr

A package to help MDS students better manage their lab assignments.
https://ubc-mds.github.io/labzenr
Other
0 stars 3 forks source link

Write the internal code for R functions #14

Closed kmoravej closed 3 years ago

kmoravej commented 3 years ago

After writing your unit tests, write the internal code for your R functions.

Write function code and tests in close temporal proximity with each other. The process of writing function code and test cases will be iterative; there will be several rounds of writing tests → function improvement → writing more tests → function improvement → writing more tests → function improvement, etc.

Make sure that the tests cover all branches (e.g., if your function has an if statement, you should have tests where the if statement is true, and where the if statement is false.

rtaph commented 3 years ago

Done: