mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-04 06:13:10 +00:00
add test_compare_blob_lists_created
This commit is contained in:
parent
dc1f975f13
commit
2aec310c1e
@ -152,5 +152,15 @@ mod tests {
|
|||||||
assert!(!result.is_empty());
|
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 { .. }));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user