Skip to content

Instantly share code, notes, and snippets.

@vtamara
Last active January 12, 2023 04:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vtamara/c6b3a522de6759ca9a87359257e8fbcd to your computer and use it in GitHub Desktop.
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
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