code / tomo-koans

Lines447 Tomo432 INI9 Markdown6
(18 lines)
1 # Assertions
3 func main()
4 # Assertions can be used to check that a
5 # value is what you expect it to be:
7 assert 1 + 1 == 2
9 # For debugging purposes, you can use `>>`
10 # to print out a value:
11 >> 20 + 30
13 # If a docstring test's output is different
14 # from what was expected, it will print an
15 # error message and halt the program.
17 # Edit this test so it passes:
18 assert 2 + 2 == ???