1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-09 15:12:26 +08:00

test: add examples for random package

This commit is contained in:
dudaodong
2023-01-03 15:10:42 +08:00
parent c8f8b1b7d9
commit 1de2e2cedd
5 changed files with 200 additions and 25 deletions

View File

@@ -68,6 +68,7 @@ func TestRandInt(t *testing.T) {
assert := internal.NewAssert(t, "TestRandInt")
r1 := RandInt(1, 10)
t.Log(r1)
assert.GreaterOrEqual(r1, 1)
assert.Less(r1, 10)