add test_gas_limits_check_insufficient_funds

This commit is contained in:
Rostyslav Tyshko 2025-06-26 23:15:45 -04:00
parent 2fadf0c82f
commit eb14d632d9

View File

@ -527,4 +527,14 @@ mod tests {
assert!(result.is_ok());
}
#[test]
fn test_gas_limits_check_insufficient_funds() {
let message = 1;
let message_2 = 2;
let gas_calc = GasCalculator::new(1, 1, 1, 1, 1, 1000000, 1000000);
let result = gas_limits_check(vec![message, message_2], SUMMATION_ELF, &gas_calc, 1);
assert!(matches!(result, Err(ExecutionFailureKind::InsufficientFundsError)));
}
}