Addition
This example demonstrates how to perform basic addition operations in Nada. It shows a simple implementation of adding two numbers together, showcasing the fundamental arithmetic capabilities of the Nada language.
- Nada program
- Test file
src/addition.py
loading...
tests/addition_test.yaml
loading...
Run and test the addition program
1. Open "Nada by Example"
2. Run the program with inputs
from the test file
nada run addition_test
3. Test the program with inputs
from the test file against the expected_outputs
from the test file
nada test addition_test