func TestDelete(t *testing.T) {
	bx := NewTestDB()
	defer bx.Close()

	things, err := bx.New([]byte("things"))
	if err != nil {
		t.Error(err.Error())
	}

	k, v := []byte("foo"), []byte("bar")
	if err = things.Put(k, v); err != nil {
		t.Error(err.Error())
	}

	if err = things.Delete(k); err != nil {
		t.Error(err.Error())
	}
}
// Ensure that we can delete stuff in a bucket.
Ensure that we can delete stuff in a bucket.
// Ensure that we can delete stuff in a bucket .
func TestDelete(t *testing.T) {
	bx := NewTestDB()
	defer bx.Close()
	things, err := bx.New([]byte("things"))
	if err != nil {
		t.Error(err.Error())
	}
	k, v := []byte("foo"), []byte("bar")
	if err = things.Put(k, v); err != nil {
		t.Error(err.Error())
	}
	if err = things.Delete(k); err != nil {
		t.Error(err.Error())
	}
}
func TestDelete ( t * testing . T ) { bx := NewTestDB ( ) defer bx . Close ( ) things , err := bx . New ( [ ] byte ( " " ) ) if err != nil { t . Error ( err . Error ( ) ) } k , v := [ ] byte ( " " ) , [ ] byte ( " " ) if err = things . Put ( k , v ) ; err != nil { t . Error ( err . Error ( ) ) } if err = things . Delete ( k ) ; err != nil { t . Error ( err . Error ( ) ) } }
Ensure that we can delete stuff in a bucket.
Ensure that we can delete stuff in a bucket .