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

Add Android platform; Import testify; Fix tests #58

Merged
merged 2 commits into from
Jun 21, 2021

Conversation

conves
Copy link
Contributor

@conves conves commented Jun 19, 2021

What I did:

  1. I added Android to the list of available platforms, as it was breaking tests.
  2. I imported testify. (MIT)
  3. I also refactored the TestAvailablePlatforms function to table driven tests.

Why I did it:

  1. I think this is the recent PR to tldr-pages that added Android and started breaking tests.
  2. I'm using testify extensively in other projects, and it just makes my life way easier. :)
  3. Table driven is the idiomatic way of writing tests in Go.

I've added Android to the list of available platorms, as it was breaking tests.
I think this is the recent PR to tldr-pages that added Android:
tldr-pages/tldr#5743

Also, I've imported the testify lib, as I'm using it extensively, and it just
makes my life easier. :)
https://github.com/stretchr/testify

Finally, I refactored the TestAvailablePlatforms to table driven tests.
Copy link
Owner

@mstruebing mstruebing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, great work! 🥇
Would you mind adding your changes to the CHANGELOG.mdfile?
That would be great 👍

@mstruebing mstruebing merged commit d745d15 into mstruebing:master Jun 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants