Added some extra tests.

This commit is contained in:
Franco Masotti 2022-04-02 18:15:56 +02:00
parent ab9c35a12a
commit b9768f14c0
Signed by: frnmst
GPG Key ID: 24116ED85666780A
1 changed files with 10 additions and 0 deletions

View File

@ -1096,11 +1096,21 @@ class TestApi(unittest.TestCase):
# Example 477 [Commonmark 0.30].
self.assertEqual(api.remove_emphasis('*a `*`*'), 'a `*`')
# Extra examples.
self.assertEqual(api.remove_emphasis('*a `****`*'), 'a `****`')
self.assertEqual(api.remove_emphasis('*a `** **`*'), 'a `** **`')
self.assertEqual(api.remove_emphasis('*a `**** `*'), 'a `**** `')
# Example 456 [Commonmark 0.28].
# Example 478 [Commonmark 0.29].
# Example 478 [Commonmark 0.30].
self.assertEqual(api.remove_emphasis('_a `_`_'), 'a `_`')
# Extra examples.
self.assertEqual(api.remove_emphasis('_a `____`_'), 'a `____`')
self.assertEqual(api.remove_emphasis('_a `__ __`_'), 'a `__ __`')
self.assertEqual(api.remove_emphasis('_a `____ `_'), 'a `____ `')
# Example 457 [Commonmark 0.28].
# Example 479 [Commonmark 0.29].
# Example 479 [Commonmark 0.30].