Skip to content

Commit af85c97

Browse files
author
Gonzalo Diaz
committed
[REFACTOR] clean code: variable naming
1 parent 50905b9 commit af85c97

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ coverage: test
105105

106106
coverage/html: test
107107
${RUNTIME_TOOL} -m coverage html
108+
open htmlcov/indes.html
108109

109110
outdated:
110111
${PACKAGE_TOOL} list --outdated

src/hackerrank/interview_preparation_kit/sorting/ctci_comparator_sorting_test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ class TestComparatorSorting(unittest.TestCase):
5656

5757
def test_player(self):
5858

59-
a = Player('David', 100)
60-
a_as_string = str(a)
59+
a_player = Player('David', 100)
60+
a_as_string = str(a_player)
6161
a_answer = ''
6262

6363
self.assertEqual(a_as_string, a_answer)
6464

65-
b = Player('Kurt', 10)
65+
b_player = Player('Kurt', 10)
6666
comparator_answer = 0
67-
self.assertEqual(a.comparator(b), comparator_answer)
67+
self.assertEqual(a_player.comparator(b_player), comparator_answer)
6868

6969
def test_comparator_sorting(self):
7070

0 commit comments

Comments
 (0)