Skip to main content
Run the current code in the Function editor to inspect its return value and logs. This guide uses usdc_amount from Create a Function.

Run a test

  1. Open the Function and find the raw_amount input below the editor.
  2. Enter 1500000, then press Tab or click elsewhere to apply the input.
  3. Click Run and wait for completion.
  4. In Output → Return, check that the result is 1.5.
usdc_amount test input and return value 1.5
return values appear under Return; print() output appears in the output area.

Save test inputs

Hover over the parameter bar and click the flask icon with a plus sign, Add to test cases, to save the current inputs. The number on the flask button at the right shows the saved test case count. Click that button to open the test-case list, select an entry to restore its parameters, and click Run.
A saved test case with raw_amount set to 1500000

Inspect an error and retest

Temporarily change the divisor 10 ** 6 to 0 and run with input 1500000. This triggers ZeroDivisionError. The output includes division by zero and a traceback pointing to that line.
Output shows division by zero and a traceback after the failed test
Restore the divisor to 10 ** 6, save, and run again. The return value should be 1.5.