offset test added

This commit is contained in:
Rostyslav Tyshko 2025-05-02 17:26:36 -04:00
parent 3925b42b27
commit 44246bae1f

View File

@ -256,4 +256,11 @@ mod tests {
assert_eq!(blob, deserialized);
}
#[test]
fn test_calculate_offset_slot() {
assert_eq!(calculate_offset_slot(0), 0);
assert_eq!(calculate_offset_slot(PRIVATE_BLOB_SIZE), 1);
assert_eq!(calculate_offset_slot(PRIVATE_BLOB_SIZE * 2 - 1), 1);
}
}