mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-05-17 21:49:35 +00:00
size_mismatch_error test added
This commit is contained in:
parent
3e46393b0b
commit
d351958458
@ -311,5 +311,11 @@ mod tests {
|
|||||||
assert!(matches!(rewrite_result, Err(PrivateStateError::EmptyWrite)));
|
assert!(matches!(rewrite_result, Err(PrivateStateError::EmptyWrite)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_read_size_mismatch_error() {
|
||||||
|
let state = PrivateSCState::new();
|
||||||
|
|
||||||
|
let result = read_num_bytes_start(&state, PRIVATE_BLOB_SIZE * 2);
|
||||||
|
assert!(matches!(result, Err(PrivateStateError::ReadSizeMismatch(_, _))));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user