Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document unit tests (issue #6) #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

keithrbennett
Copy link
Contributor

  • adds documentation for unit test methods and constants
  • adds an explanatory note to the benchmark.rb file
  • adds an IMPLEMENTATION.md file with an explanation of label width handling
  • fixes a misspelling in a test method name

@jeremyevans
Copy link

In general, test suites for the Ruby standard library do not document what is being tested to this level. That could be considered a good thing (less noise when updating tests) or bad thing (hard to understand what is being tested) depending on your point of view, but this change would make benchmark inconsistent with most of the rest of the standard library. If you think we should start documenting standard library tests like this, you should probably create a Misc ticket on the Ruby bug tracker, and add it to the list of topics to be discussed at the next developer meeting.

I think the change made in lib is good, and fixing misspelled test names is also a good change to make. So those changes we could easily merge separately if you submit a separate pull request for them.

@keithrbennett
Copy link
Contributor Author

keithrbennett commented Mar 1, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants