You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
doc: not clear how to test for one number less than another #711
For those who find this when googling (like I was), while masterdoes include assertions for this, it is not present in the current release (1.3.0). The documentation reflects master, rather than the current release.
If you want to do this in the current release, you can do something like this
// Cannot call this more times than we have values forassert.True(t, func() bool {
returnreadCursor<len(pasteContents)
}())
Activity
ollien commentedon Mar 16, 2019
For those who find this when googling (like I was), while
masterdoes include assertions for this, it is not present in the current release (1.3.0). The documentation reflectsmaster, rather than the current release.If you want to do this in the current release, you can do something like this
kandros commentedon May 18, 2019
You can use
assert.Lessdoc here
ollien commentedon May 18, 2019
@kandros This is not present in the current release, only in master.
KianYang-Lee commentedon May 11, 2024
Shouldn'nt this be marked as closed? It's already documented here