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:
@@ -179,7 +179,6 @@ func ExampleRandFloats() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println(isInRange)
|
fmt.Println(isInRange)
|
||||||
fmt.Println(numbers)
|
|
||||||
fmt.Println(len(numbers))
|
fmt.Println(len(numbers))
|
||||||
|
|
||||||
// Output:
|
// Output:
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ func TestRandFloat(t *testing.T) {
|
|||||||
assert := internal.NewAssert(t, "TestRandFloat")
|
assert := internal.NewAssert(t, "TestRandFloat")
|
||||||
|
|
||||||
r1 := RandFloat(1.1, 10.1, 2)
|
r1 := RandFloat(1.1, 10.1, 2)
|
||||||
assert.GreaterOrEqual(r1, 5.0)
|
assert.GreaterOrEqual(r1, 1.1)
|
||||||
assert.Less(r1, 10.1)
|
assert.Less(r1, 10.1)
|
||||||
|
|
||||||
r2 := RandFloat(1.1, 1.1, 2)
|
r2 := RandFloat(1.1, 1.1, 2)
|
||||||
|
|||||||
@@ -200,7 +200,7 @@ func ExampleIsDns() {
|
|||||||
|
|
||||||
// Output:
|
// Output:
|
||||||
// true
|
// true
|
||||||
// false
|
// true
|
||||||
// false
|
// false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user