Last active
January 12, 2023 04:45
-
-
Save vtamara/c6b3a522de6759ca9a87359257e8fbcd to your computer and use it in GitHub Desktop.
Test for solution of first task of https://github.com/ton-blockchain/func-contest2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int __test_t30_12() { | |
int a = 30; | |
int b = 12; | |
tuple stack = unsafe_tuple([a, b]); | |
cell data = begin_cell().end_cell(); | |
var (int gas_used, ret_stack) = invoke_method(gcd, stack); | |
int result = first(ret_stack); | |
throw_if(101, result != 6); | |
return gas_used; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment