-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
20 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
import labs.fileio.file_io as file_io | ||
"""Modue to test file_io.py | ||
""" | ||
|
||
import file_io | ||
|
||
def test_sort_ascending(): | ||
|
||
def test_sort_ascending1(): | ||
my_nums = [10, 9, 0. - 6] | ||
file_io.sortListInAscendingOrder(my_nums) | ||
assert (my_nums == [-6, 0, 9, 10]) | ||
|
||
# add 3 more test cases | ||
# add 3 more test cases in separate test functions | ||
|
||
|
||
def test_sort_descending(): | ||
def test_sort_descending1(): | ||
my_nums = [0, -10, -1, 5, 100] | ||
file_io.sortListInDescendingOrder(my_nums) | ||
my_nums == [100, 5, 0, -1, -10] | ||
|
||
# add 3 more test cases | ||
|
||
# add 3 more test cases in seeparate test functions |