Skip to content

doc: not clear how to test for one number less than another #1659

Answered by kandros
shaunc asked this question in Q&A
Discussion options

You must be logged in to vote

You can use assert.Less

	assert.Less(t, 3, 4) // passes
	assert.Less(t, 4, 3) // fails

doc here

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by brackendawson
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
4 participants
Converted from issue

This discussion was converted from issue #711 on October 08, 2024 16:07.