Skip to content

Commit

Permalink
Test training with emoji characters.
Browse files Browse the repository at this point in the history
  • Loading branch information
gunthercox committed Dec 3, 2017
1 parent e553cb3 commit 728844a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/training_tests/test_list_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,22 @@ def test_training_with_unicode_characters(self):

self.assertEqual(response, conversation[2])

def test_training_with_emoji_characters(self):
"""
Ensure that the training method adds statements containing emojis.
"""
conversation = [
u'Hi, how are you? 😃',
u'I am just dandy 👍',
u'Superb! 🎆'
]

self.chatbot.train(conversation)

response = self.chatbot.get_response(conversation[1])

self.assertEqual(response, conversation[2])

def test_similar_sentence_gets_same_response_multiple_times(self):
"""
Tests if the bot returns the same response for the same
Expand Down

0 comments on commit 728844a

Please sign in to comment.