We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Pointers & errors chapter tests do not cover the whole codebase, because this function is not tested:
func (b Bitcoin) String() string { return fmt.Sprintf("%d BTC", b) }
which can be covered with the test below:
t.Run("Bitcoin String", func(t *testing.T) { btc := Bitcoin(10) got := btc.String() want := "10 BTC" if got != want { t.Errorf("got %s want %s", got, want) } })
I strongly believe that we should encourage learners to find why the test coverage is not 100% and fix it as an assignment first.
The text was updated successfully, but these errors were encountered:
@quii should I go for it?
Sorry, something went wrong.
Sure, but do a quick draft first so I can help you
@quii I created this PR with basic practice exercise added. feel free to tell me any possible improvements
No branches or pull requests
Pointers & errors chapter tests do not cover the whole codebase, because this function is not tested:
which can be covered with the test below:
I strongly believe that we should encourage learners to find why the test coverage is not 100% and fix it as an assignment first.
The text was updated successfully, but these errors were encountered: