Closed
Description
In many tests, we have some number of input/output pairs, and the validation we perform on the input/output pairs is the same. For the purpose of not repeating ourselves, we often extract the validation into one function.
For further deduplication, and for not adding so many test functions, we may consider the approach taken in https://github.com/exercism/rust/blob/master/exercises/perfect-numbers/tests/perfect-numbers.rs, a table-driven test.
Let us decide some set of circumstances under which table-based tests are ideally to be used (all the time, none of the time, or something in between).
Metadata
Metadata
Assignees
Labels
No labels