@test marca una función como test:
@test
@test fn test_suma() { assert_eq(1 + 1, 2) assert_eq(10 - 3, 7) assert_ne(5, 6) }
Ejecuta con zolo test archivo.zolo.
zolo test archivo.zolo
Objetivo: Escribe una función add y un @test para ella.
add
Ejecuta el código para ver el output
9 resultados