0
0

additional row validation

This commit is contained in:
Marty Schoch 2015-07-13 15:22:54 -04:00
parent ad0d580587
commit 1b28f6218b

View File

@ -295,3 +295,13 @@ func TestIndexDocIdReader(t *testing.T) {
t.Errorf("expected to find id '', got '%s'", id)
}
}
func TestCrashBadBackIndexRow(t *testing.T) {
br, err := NewBackIndexRowKV([]byte{byte('b'), byte('a'), ByteSeparator}, []byte{})
if err != nil {
t.Fatal(err)
}
if string(br.doc) != "a" {
t.Fatal(err)
}
}