Skip to content

Commit

Permalink
update comment explaning the emptyTestCase struct
Browse files Browse the repository at this point in the history
Co-authored-by: André Santos <andrerfcsantos@gmail.com>
  • Loading branch information
jesse-kroon and andrerfcsantos authored Jan 30, 2024
1 parent e0c7241 commit e26ca9d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions exercises/practice/dnd-character/.meta/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ func main() {
}
}

// The problem specifications expect properties "Ability" and "Character" to be present
// but, we don't want to generate test cases for these as they don't have any input. To
// circumvent the test generator failing on missing properties, we've introduced
// the emptyTestCase struct.
// Problem specifications have the 'ability' and 'character' properties,
// and the test generator expects them to be present.
// However, for these properties, generating test cases automatically
// from the 'input' and the 'expected' objects is not trivial.
// To satisfy the test generator, we create an emptyTestCase for these properties
// and implement the tests manually.
// In the future we might adapt the test generator to also cover this exercise.
type emptyTestCase struct{}

type modifierTestInput struct {
Expand Down

0 comments on commit e26ca9d

Please sign in to comment.