Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Can't see what the difference is in Ward diff #370

Open
JosephTLyons opened this issue Mar 25, 2023 · 0 comments
Open

Can't see what the difference is in Ward diff #370

JosephTLyons opened this issue Mar 25, 2023 · 0 comments

Comments

@JosephTLyons
Copy link

The test:

@test("test create_markdown_table")
def _():
    column_data = {
        "commands": [
            "Cut to end of line",
            "Transpose",
            "Delete to beginning of line"
        ],
        "shortcuts": [
            "`Control + K`",
            "`Control + T`",
            "`Command + Backspace`"
        ],
        "targets": [
            "Editor",
            "Editor",
            "Editor"
        ]
    }

    markdown_table = """
        | **Command**                 | **Target**   | **Default Shortcut**   |
        |-----------------------------|--------------|------------------------|
        | Cut to end of line          | Editor       | `Control + K`          |
        | Delete to beginning of line | Editor       | `Command + Backspace`  |
        | Transpose                   | Editor       | `Control + T`          |
    """
    assert create_markdown_table(column_data) == textwrap.dedent(markdown_table)

The output:

SCR-20230325-kwos

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant