From 4f312649f21efcccd1f778e20485e05998cd2b13 Mon Sep 17 00:00:00 2001 From: SuHun Han Date: Tue, 9 Jun 2020 00:26:29 +0900 Subject: [PATCH] test(client): add a test for emojis --- tests/test_client.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_client.py b/tests/test_client.py index 87f40d0..4929547 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -39,6 +39,11 @@ def test_unicode(translator): assert result.text == u'こんにちは。' +def test_emoji(translator): + result = translator.translate('😀') + assert result.text == u'😀' + + def test_language_name(translator): result = translator.translate(u'Hello', src='ENGLISH', dest='iRiSh') assert result.text == u'Dia dhuit'