Skip to content

Need sample for pretty printing #3

Description

@smoothdeveloper

I'd like to use this great library to help with failing unit tests comparing expected/actual string values.

I'd like the diff to be pretty printed pretty much like github shows with each line prefixed with + and - and few lines of context around each diff.

I figured out how to use the library to get the list of diff but couldn't figure out how to implement the appropriate pretty-printing to do what I described.

I'd appreciate minimal code sample to do that!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions