1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-04 12:52:28 +08:00

fix: fix failed unit test

This commit is contained in:
dudaodong
2023-12-11 15:04:54 +08:00
parent aa4b61ff85
commit c5297ec329
3 changed files with 2 additions and 3 deletions

View File

@@ -179,7 +179,6 @@ func ExampleRandFloats() {
}
fmt.Println(isInRange)
fmt.Println(numbers)
fmt.Println(len(numbers))
// Output:

View File

@@ -174,7 +174,7 @@ func TestRandFloat(t *testing.T) {
assert := internal.NewAssert(t, "TestRandFloat")
r1 := RandFloat(1.1, 10.1, 2)
assert.GreaterOrEqual(r1, 5.0)
assert.GreaterOrEqual(r1, 1.1)
assert.Less(r1, 10.1)
r2 := RandFloat(1.1, 1.1, 2)