test card fix

This commit is contained in:
Will McGugan 2020-03-28 11:59:00 +00:00
parent d5c56bfea3
commit 1eba8c5308
1 changed files with 19 additions and 18 deletions

View File

@ -129,7 +129,7 @@ def make_test_card() -> Table:
table.add_row("Tables", example_table)
code = '''\
def iter_last(values: Iterable[T]) -> Iterable[Tuple[bool, T]]:
def iter_last(values: Iterable[T]) -> Iterable[Tuple[bool, T]]:
"""Iterate and generate a tuple with a flag for last value."""
iter_values = iter(values)
try:
@ -144,14 +144,15 @@ def make_test_card() -> Table:
table.add_row("Syntax highlighting", Syntax(code, "python3", line_numbers=True))
markdown_example = """\
# Markdown
# Markdown
Supports much of the *markdown*, __syntax__!
Supports much of the *markdown*, __syntax__!
- Headers
- Basic formatting: bold, italic, code etc
- Block quotes
- Lists, and more... """
- Headers
- Basic formatting: bold, italic, code etc
- Block quotes
- Lists, and more...
"""
table.add_row("Markdown", comparison(markdown_example, Markdown(markdown_example)))
table.add_row(