Implement checks for sequences #21
Labels
effort: medium
These issues require some work
good first issue
Good for newcomers
priority: high
type: feature
New feature
Milestone
Create a file
paddles/preconditions.py
that will contain functions that check common preconditions. To start:is_non_decreasing
fromtest_sorting.py
to this file and import it intest_sorting
.Create a file
tests/test_preconditions.py
:pytest
as this file won't use fixtures, only 'static' test data.NON_DECREASING
should not include a sequence like[1,2,3]
because that is a strictly increasing sequence.is_non_decreasing
. II consists of 5 loops, one per constant:Although this issue requires more effort than some of the others, it's relatively simple and thus a good first issue.
The text was updated successfully, but these errors were encountered: