1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-02-13 03:32:22 +00:00
ton/crypto/func/auto-tests/tests/c2_1.fc
2022-09-23 16:27:18 +03:00

14 lines
283 B
Text

_ check_assoc(op, a, b, c) {
return op(op(a, b), c) == op(a, op(b, c));
}
int main(int x, int y, int z) {
return check_assoc(_+_, x, y, z);
}
{-
method_id | in | out
TESTCASE | 0 | 2 3 9 | -1
TESTCASE | 0 | 11 22 44 | -1
TESTCASE | 0 | -1 -10 -20 | -1
-}