Skip to content

Commit

Permalink
Rename test names
Browse files Browse the repository at this point in the history
  • Loading branch information
ermanh committed Jun 21, 2020
1 parent a412122 commit 44d5f67
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/test_add.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import unittest


class TestTrieRegEx(unittest.TestCase):
class TestAdd(unittest.TestCase):
"""Tests for TrieRegEx().add()
"""

Expand Down
4 changes: 2 additions & 2 deletions tests/test_finals.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ def test_remove_word_lower_frequency(self):
"'s' should have a value of 0 (down from 1)"
)

def test_zero_frequency_should_not_appear_in_function_call(self):
def test_zero_frequency_should_not_appear(self):
self.tre.remove('stars')
self.assertEqual(
self.tre.finals(),
['e', 'h', 'l', 'm', 'r', 't', 'y'],
"'s' should not appear in the list"
)

def test_remove_nonexisting_word_initial_with_zero_frequency(self):
def test_remove_nonexisting_final_with_zero_frequency(self):
self.tre.remove('stars') # set 's': 1 -> 't': 0
self.tre.remove('spotlights') # attempt removal of nonexisting word
self.assertEqual(
Expand Down
4 changes: 2 additions & 2 deletions tests/test_initials.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ def test_remove_word_lower_frequency(self):
"'t' should have a value of 0 (down from 1)"
)

def test_zero_frequency_should_not_appear_in_function_call(self):
def test_zero_frequency_should_not_appear(self):
self.tre.remove('the')
self.assertEqual(
self.tre.initials(),
['a', 'b', 'e', 'f', 'n', 's', 'w'],
"'t' should not appear in the list"
)

def test_remove_nonexisting_word_initial_with_zero_frequency(self):
def test_remove_nonexisting_initial_with_zero_frequency(self):
self.tre.remove('the') # set 't': 1 -> 't': 0
self.tre.remove('table') # attempt removal of nonexisting word
self.assertEqual(
Expand Down

0 comments on commit 44d5f67

Please sign in to comment.