learning-go-book / test_examples

48 stars 11 forks source link

fix table test multiplication operator #1

Closed naokomada closed 8 months ago

naokomada commented 1 year ago

Perhaps the multiplication operator is incorrect and I made a pull request.

The test passed before, but I think that was because the arguments specified in the test code were 2 and 2. If it was 2 and 3, the test would not pass.

(Of course, the subject of this sample code is table tests, so I don't think this part is so important.)

jonbodner commented 8 months ago

The error is intentional. In the testing chapter, I use this bug to show that 100% code coverage doesn't mean bug-free.