Unit testing for def/ module.
Added unit tests to test code in def/ module.
This commit is contained in:
parent
e24b8a08c9
commit
bac60e872a
396 changed files with 83991 additions and 13209 deletions
2
vendor/github.com/montanaflynn/stats/sample.go
generated
vendored
2
vendor/github.com/montanaflynn/stats/sample.go
generated
vendored
|
@ -6,7 +6,7 @@ import "math/rand"
|
|||
func Sample(input Float64Data, takenum int, replacement bool) ([]float64, error) {
|
||||
|
||||
if input.Len() == 0 {
|
||||
return nil, EmptyInput
|
||||
return nil, EmptyInputErr
|
||||
}
|
||||
|
||||
length := input.Len()
|
||||
|
|
Reference in a new issue