Skip to content

Commit

Permalink
[unicode_info] Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Elad Alfassa committed May 2, 2014
1 parent 3ec12f5 commit b11302c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion unicode_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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__)

0 comments on commit b11302c

Please sign in to comment.