Skip to content

Commit

Permalink
Fixes key word test.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsroten committed Dec 21, 2015
1 parent 5411703 commit cb2418d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pynlpir/tests/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def test_get_key_words(self):
key_words = pynlpir.get_key_words(s)
weighted_key_words = pynlpir.get_key_words(s, weighted=True)
expected_key_words = ['美国']
expected_weighted_key_words = [('美国', 0.01)]
expected_weighted_key_words = [('美国', 2.2)]
self.assertEqual(expected_key_words, key_words)
self.assertEqual(expected_weighted_key_words, weighted_key_words)

Expand Down

0 comments on commit cb2418d

Please sign in to comment.