mirror of
https://github.com/muesli/kmeans.git
synced 2025-09-26 19:51:27 +08:00
Fixed tests for new API
This commit is contained in:
@@ -5,12 +5,12 @@ import (
|
||||
)
|
||||
|
||||
func TestNewErrors(t *testing.T) {
|
||||
_, err := NewWithOptions(0.00, false)
|
||||
_, err := NewWithOptions(0.00, nil)
|
||||
if err == nil {
|
||||
t.Errorf("Expected invalid options to return an error, got nil")
|
||||
}
|
||||
|
||||
_, err = NewWithOptions(1.00, false)
|
||||
_, err = NewWithOptions(1.00, nil)
|
||||
if err == nil {
|
||||
t.Errorf("Expected invalid options to return an error, got nil")
|
||||
}
|
||||
|
Reference in New Issue
Block a user