test: add examples for random package

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

No files matched your search

+1
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)