datacamp / testwhat

Write Submission Correctness Tests for R exercises
https://datacamp.github.io/testwhat
GNU Affero General Public License v3.0
33 stars 24 forks source link

Add an index argument to check_if() #212

Open richierocks opened 5 years ago

richierocks commented 5 years ago

Currently, if an exercise requires a student to define a function with 2 if blocks, you can't distinguish them.

See Writing Functions in R, Ch5, Ex13 as an example of this.