mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-03-25 19:53:07 +00:00
offset test added
This commit is contained in:
parent
3925b42b27
commit
44246bae1f
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user