Convert Array tests to table-driven style #351
Labels
good first issue
Good for newcomers
help wanted
Contributions are welcome
refactoring
Refactoring task
tests
Improvements or additions to tests
Milestone
Convert each subtest of the following tests to table-driven style:
TestNumber_IsEqual/basic
can be used as a reference for table-driven style.For subtests that do only a few checks (e.g.
TestNumber_IsEqual/invalid argument
has only two checks), instead of table we can use the same approach as inTestNumber_IsInt/invalid argument
, where we create a fresh number for each check.The text was updated successfully, but these errors were encountered: