Fixed tests for new API

This commit is contained in:
Christian Muehlhaeuser
2018-05-28 00:41:29 +02:00
parent 70160ed641
commit 85fa95f2ce

View File

@@ -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")
}