Skip to content

Commit

Permalink
fix: fix failed unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
duke-git committed Dec 11, 2023
1 parent aa4b61f commit c5297ec
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion random/random_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ func ExampleRandFloats() {
}

fmt.Println(isInRange)
fmt.Println(numbers)
fmt.Println(len(numbers))

// Output:
Expand Down
2 changes: 1 addition & 1 deletion random/random_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion validator/validator_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func ExampleIsDns() {

// Output:
// true
// false
// true
// false
}

Expand Down

0 comments on commit c5297ec

Please sign in to comment.