sway
sway copied to clipboard
Test fails depending on the existence of a log
Related Component
compiler
Problem
The given test only passes if the logging of the result occurs (may not be limited to logging, could just be usage of the result in anyway), if the log call is commented out, the test fails
Steps
#[test(should_revert)]
fn math_u64_pow_overflow_should_revert() {
let _result = 2_u64.pow(64);
log(_result);
}
forc test
Possible Solution(s)
No response
Notes
No response
Installed components
forc 0.62.0
See https://github.com/FuelLabs/sway/pull/6452#issuecomment-2306881388 for a reproduction and output analysis.
Duplicate of #4307