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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user