From b11302cfa47f25b62ee2f6f3c61b27a499388d17 Mon Sep 17 00:00:00 2001 From: Elad Alfassa Date: Fri, 2 May 2014 21:54:32 +0300 Subject: [PATCH] [unicode_info] Add tests --- unicode_info.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/unicode_info.py b/unicode_info.py index d3167f95ba..4107646e38 100644 --- a/unicode_info.py +++ b/unicode_info.py @@ -13,7 +13,7 @@ @commands('u') -@example('.u 203D') +@example('.u 203D', 'U+203D INTERROBANG (‽)') def codepoint(bot, trigger): arg = trigger.group(2).strip() if len(arg) == 0: @@ -40,3 +40,7 @@ def codepoint(bot, trigger): else: template = 'U+%s %s (\xe2\x97\x8c%s)' bot.say(template % (point, name, arg)) + +if __name__ == "__main__": + from willie.test_tools import run_example_tests + run_example_tests(__file__)