leo/tests/compiler/integers/u128/pow.leo
2022-06-16 16:45:37 -07:00

11 lines
189 B
Plaintext

/*
namespace: Compile
expectation: Pass
# The exponent must be u8, u16, or u32
*/
function main(a: u128, b: u128, c: u128) -> bool {
return a ** 2u8 == a ** 2u16 && a ** 2u32 == c;
}