Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit a7b4877

Browse files
committed
Fixed #16
Renamed tests. Refactored testing fixtures.
1 parent e9864f9 commit a7b4877

File tree

12 files changed

+4
-17
lines changed

12 files changed

+4
-17
lines changed
File renamed without changes.

tests/calc/test_func.py renamed to tests/calc/func_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def test_fibonacci_number_getter():
1212
assert calc.get_fibonacci_number(1) == 1
1313
assert calc.get_fibonacci_number(2) == 1
1414
assert calc.get_fibonacci_number(3) == 2
15-
assert calc.get_fibonacci_number(9) == 34
15+
assert calc.get_fibonacci_number(10) == 55
1616

1717

1818
def test_sum_of_strings():
@@ -21,7 +21,7 @@ def test_sum_of_strings():
2121
assert calc.get_sum_of_strings("99", "1") == "100"
2222

2323

24-
def test_sum_of_strings_big_numbers():
24+
def test_sum_of_strings_big_integers():
2525
x, y, test_value = "490053634", "20846201", "510899835"
2626
assert calc.get_sum_of_strings(x, y) == test_value
2727

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/sequences/test_func.py renamed to tests/sequences/func_test.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,3 @@ def test_get_longest_uniq_sequence_length():
6060
assert sequences.get_longest_uniq_length("abcdefg") == 7
6161
assert sequences.get_longest_uniq_length("abcacba") == 3
6262
assert sequences.get_longest_uniq_length("hwccjayhiszbmomlqkem") == 11
63-
64-
65-

tests/sorting/conftest.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,3 @@ def sorted_list_a():
2424
@pytest.fixture
2525
def sorted_list_b():
2626
return [3, 7, 24, 51, 73, 83, 89, 90, 96]
27-
28-
29-
@pytest.fixture
30-
def sorted_merged_list():
31-
return [3, 3, 7, 24, 38, 41, 41, 44, 44, 51, 56, 73, 80, 83, 86, 89, 90, 96]

tests/sorting/test_func.py renamed to tests/sorting/func_test.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ def test_insertion_sort(unsorted_list, reversed_list, sorted_list):
1616
assert sorting.insertion_sort(reversed_list) == sorted_list
1717

1818

19-
def test_merge_two_lists(sorted_list_a, sorted_list_b, sorted_merged_list):
20-
assert sorting.merge_lists(sorted_list_a, sorted_list_b) == \
21-
sorted_merged_list
19+
def test_merge_two_lists(sorted_list_a, sorted_list_b, sorted_list):
20+
assert sorting.merge_lists(sorted_list_a, sorted_list_b) == sorted_list
2221

2322

2423
def test_merge_sort(unsorted_list, reversed_list, sorted_list):

0 commit comments

Comments
 (0)