@test marks a function as a test:
@test
@test fn test_sum() { assert_eq(1 + 1, 2) assert_eq(10 - 3, 7) assert_ne(5, 6) }
Run with zolo test file.zolo.
zolo test file.zolo
Goal: Write an add function and a @test for it.
add
Run the code to see the output
9 results