google / googletest

GoogleTest - Google Testing and Mocking Framework
https://google.github.io/googletest/
BSD 3-Clause "New" or "Revised" License
34.94k stars 10.16k forks source link

[Bug]: Possible error in Documentation #4631

Open c-anon opened 1 month ago

c-anon commented 1 month ago

Describe the issue

At the http://google.github.io/googletest/gmock_for_dummies.html#StickyExpectations at one place the for loop looks like this:

for (int i = n; i > 0; i--)

and later like this:

for (int i = 1; i <= n; i++)

Is this an error or do I not understand something. If this is a wrong place to post this, please forward me somewhere else. Cheers.

Steps to reproduce the problem

Go to: http://google.github.io/googletest/gmock_for_dummies.html#StickyExpectations and see if the for loops should look like this.

What version of GoogleTest are you using?

no version, just docs

What operating system and version are you using?

web browser

What compiler and version are you using?

web browser

What build system are you using?

web browser

Additional context

No response