Skip to content

Commit

Permalink
Add test for issue 25
Browse files Browse the repository at this point in the history
  • Loading branch information
hartwork committed Sep 22, 2013
1 parent 683f672 commit 6df79eb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_ansi2html.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,5 +183,13 @@ def test_no_markup_lines(self):
html = Ansi2HTMLConverter().convert(test, full=False)
self.assertEqual(expected, html)

def test_issue_25(self):
sample = '\x1b[0;38;5;238;48;5;231mTEXT\x1b[0m'

html = Ansi2HTMLConverter(inline=False).convert(sample, full=False)
expected = six.u('<span class="ansi38-238 ansi48-231">TEXT</span>')

self.assertEqual(expected, html)

if __name__ == '__main__':
unittest.main()

0 comments on commit 6df79eb

Please sign in to comment.