add test_compare_blob_lists_created

This commit is contained in:
Rostyslav Tyshko 2025-04-03 18:36:44 -04:00
parent dc1f975f13
commit 2aec310c1e

View File

@ -152,5 +152,15 @@ mod tests {
assert!(!result.is_empty());
}
#[test]
fn test_compare_blob_lists_created() {
let old_list: Vec<DataBlob> = vec![];
let new_list: Vec<DataBlob> = vec![[1; SC_DATA_BLOB_SIZE]];
let changes = compare_blob_lists(&old_list, &new_list);
assert_eq!(changes.len(), 1);
assert!(matches!(changes[0], DataBlobChangeVariant::Created { .. }));
}
}