fix tests

This commit is contained in:
marin postma
2021-10-24 14:41:36 +02:00
parent 0f86d6b28f
commit 2e62925a6e
8 changed files with 49 additions and 55 deletions

View File

@ -68,8 +68,9 @@ mod test {
"txts": sample_txts[..(rng.gen_range(0..3))],
"cat-ints": sample_ints[..(rng.gen_range(0..3))],
});
todo!()
//builder.add_documents(doc).unwrap();
let doc = Cursor::new(serde_json::to_vec(&doc).unwrap());
builder.extend_from_json(doc).unwrap();
}
builder.finish().unwrap();