From 156d170d13dd3268728767adf9147e8c4d53d01f Mon Sep 17 00:00:00 2001 From: mathieui Date: Tue, 14 Nov 2017 19:23:35 +0100 Subject: Make italics work --- test/test_xhtml.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') diff --git a/test/test_xhtml.py b/test/test_xhtml.py index 4f0f2b4f..472991c6 100644 --- a/test/test_xhtml.py +++ b/test/test_xhtml.py @@ -33,6 +33,9 @@ def test_poezio_colors_to_html(): text = '\x19bcoucou\x19o toto \x194}titi' assert poezio_colors_to_html(text) == base + 'coucou toto titi' + end + text = '\x19icoucou' + assert poezio_colors_to_html(text) == base + 'coucou' + end + def test_xhtml_to_poezio_colors(): start = b'

' end = b'

' @@ -45,6 +48,9 @@ def test_xhtml_to_poezio_colors(): xhtml = start + b'http://perdu.com' + end assert xhtml_to_poezio_colors(xhtml) == '\x19uhttp://perdu.com\x19o' + xhtml = start + b'Test' + end + assert xhtml_to_poezio_colors(xhtml) == '\x19iTest\x19o' + xhtml = b'
Allo
test
test2
' assert xhtml_to_poezio_colors(xhtml, force=True) == '\x19bAllo \x19196}test \x1921}test2\x19o' -- cgit v1.2.3