Skip to main content

Comparison

Less than <

src/comparison_lt.py
loading...

Run and test the comparison_lt program

1. Open "Nada by Example"

Open in Gitpod

2. Run the program with inputs from the test file

nada run comparison_lt_test

3. Test the program with inputs from the test file against the expected_outputs from the test file

nada test comparison_lt_test

Less than or equal to <=

src/comparison_lte.py
loading...

Run and test the comparison_lte program

1. Open "Nada by Example"

Open in Gitpod

2. Run the program with inputs from the test file

nada run comparison_lte_test

3. Test the program with inputs from the test file against the expected_outputs from the test file

nada test comparison_lte_test

Greater than >

src/comparison_gt.py
loading...

Run and test the comparison_gt program

1. Open "Nada by Example"

Open in Gitpod

2. Run the program with inputs from the test file

nada run comparison_gt_test

3. Test the program with inputs from the test file against the expected_outputs from the test file

nada test comparison_gt_test

Greater than or equal to >=

src/comparison_gte.py
loading...

Run and test the comparison_gte program

1. Open "Nada by Example"

Open in Gitpod

2. Run the program with inputs from the test file

nada run comparison_gte_test

3. Test the program with inputs from the test file against the expected_outputs from the test file

nada test comparison_gte_test