add test to assert type assumption (#23769)

This commit is contained in:
Jack May 2022-03-18 14:15:59 -07:00 committed by GitHub
parent c556811c0f
commit 7e358c654f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -4662,4 +4662,10 @@ mod tests {
Err(SyscallError::BadSeeds(PubkeyError::MaxSeedLengthExceeded).into())
);
}
#[test]
fn test_check_type_assumptions() {
// Code in this file assumes that u64 and usize are the same
assert_eq!(size_of::<u64>(), size_of::<usize>());
}
}