I have some logic like this that I want to test
assert!(get_persistent_entry(), 2);
pub const LEDGERS_PER_DAY: u32 = (24 * 3600) / 5;
pub const MAX_TTL: u32 = 365 * LEDGERS_PER_DAY;
env.ledger().with_mut(|li| {
li.sequence_number += (MAX_TTL);
});
assert!(get_persistent_entry(), 2);
I want it to panic/error and not restore the entry, for now nothing happens, how do I test this?