Skip to content

Commit

Permalink
Add test for links in angle brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
jimbonothing64 committed Mar 27, 2024
1 parent 25bba99 commit 4c14ba6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions verto/tests/ExternalLinkTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,17 @@ def test_trailing_question_mark(self):
converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'trailing_question_mark_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)

def test_angle_brackets(self):
'''Tests paths with brackets_in_link, inside angle brackets.'''
test_string = self.read_test_file(self.processor_name, 'angle_brackets.md')

# processor = ExternalLinkPattern(self.ext, self.md.parser)
# self.assertIsNotNone(re.search(processor.compiled_re, test_string))

converted_test_string = markdown.markdown(test_string, extensions=[self.verto_extension])
expected_string = self.read_test_file(self.processor_name, 'angle_brackets_expected.html', strip=True).strip()
self.assertEqual(expected_string, converted_test_string)

def test_multiple_links(self):
'''Tests that multiple links are processed.'''
Expand Down

0 comments on commit 4c14ba6

Please sign in to comment.