Added a negative test for MaxKeep

This commit is contained in:
Ivan Tomilov 2017-06-14 19:19:19 +07:00
parent d3aa2e75ba
commit e1417340f3
1 changed files with 8 additions and 0 deletions

View File

@ -68,6 +68,14 @@ func TestNew_WithMaxSkip_Negative(t *testing.T) {
require.NotNil(t, err)
}
func TestNew_WithMaxKeep_Negative(t *testing.T) {
// Act.
_, err := New(sk, MaxKeep(-10))
// Assert.
require.NotNil(t, err)
}
func TestNew_WithRemoteKey(t *testing.T) {
// Act.
var (