Skip to content

Commit

Permalink
Merge pull request #1 from vaaaaanquish/add_ut
Browse files Browse the repository at this point in the history
add unittest
  • Loading branch information
vaaaaanquish authored Apr 29, 2020
2 parents ce5d848 + d18ff46 commit 1414558
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/unit_test/test_word_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ class TestCloudia(unittest.TestCase):
def setUp(self):
self.cls = WordData('test', [], [], None, None, None, lambda x: [x])

def test_init_data(self):
words, name = self.cls._init_data('test')
self.assertListEqual(words, ['test'])
self.assertListEqual(name, ['word cloud'])

def test_count(self):
self.cls.word_num = 2
self.cls.stop_words = 'test'
Expand Down

0 comments on commit 1414558

Please sign in to comment.