mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-10 01:03:10 +00:00
add test_deserialize_data_blob
This commit is contained in:
parent
15e6cded2f
commit
203279da13
@ -109,6 +109,14 @@ mod tests {
|
||||
assert_eq!(json, expected_json);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_deserialize_data_blob() {
|
||||
let data = sample_vec();
|
||||
let json = serde_json::to_string(&data).unwrap();
|
||||
let deserialized: DataBlob = serde_json::from_str(&json).unwrap();
|
||||
assert_eq!(deserialized.to_vec(), data);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_produce_blob_from_fit_vec() {
|
||||
let data = (0..0 + 255).collect();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user