Skip to content

Commit

Permalink
additional asserts on offset
Browse files Browse the repository at this point in the history
  • Loading branch information
apfitzge committed Aug 8, 2024
1 parent e1e1b65 commit f34ea5f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions transaction-view/src/address_table_lookup_meta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ mod tests {
let meta = AddressTableLookupMeta::try_new(&bytes, &mut offset).unwrap();
assert_eq!(meta.num_address_table_lookup, 0);
assert_eq!(meta.offset, 1);
assert_eq!(offset, bytes.len());
}

#[test]
Expand All @@ -114,6 +115,7 @@ mod tests {
let meta = AddressTableLookupMeta::try_new(&bytes, &mut offset).unwrap();
assert_eq!(meta.num_address_table_lookup, 1);
assert_eq!(meta.offset, 1);
assert_eq!(offset, bytes.len());
}

#[test]
Expand All @@ -135,6 +137,7 @@ mod tests {
let meta = AddressTableLookupMeta::try_new(&bytes, &mut offset).unwrap();
assert_eq!(meta.num_address_table_lookup, 2);
assert_eq!(meta.offset, 1);
assert_eq!(offset, bytes.len());
}

#[test]
Expand Down

0 comments on commit f34ea5f

Please sign in to comment.