Skip to content

Commit 9b5979e

Browse files
committed
test(model): correct FloatVecResult size assertion
1 parent d58d540 commit 9b5979e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

embeddings/src/model/ffi_test.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,12 +408,15 @@ mod tests {
408408
mem::size_of::<*const c_char>() + mem::size_of::<usize>()
409409
);
410410

411-
// FloatVecResult should be pointer + two usizes + error pointer
411+
// FloatVecResult: error ptr + embeddings ptr + len + cap
412+
// + row_offsets ptr + rows + offsets_cap
412413
assert_eq!(
413414
mem::size_of::<FloatVecResult>(),
414415
mem::size_of::<*mut c_char>()
415416
+ mem::size_of::<*const FloatVec>()
416417
+ mem::size_of::<usize>() * 2
418+
+ mem::size_of::<*const usize>()
419+
+ mem::size_of::<usize>() * 2
417420
);
418421
}
419422

0 commit comments

Comments
 (0)