Skip to content

Add diff functionality #2

@arp242

Description

@arp242

Doing something like this can be tedious for larger multi-line strings:

if l:got isnot# l:want
    call Errorf('want: %s\ngot:  %s\n', l:want, l:got)
endif

When a test fails, it's hard to see what exactly failed. Getting a diff makes this a lot easier:

let l:diff = Diff(l:got, l:want)
if l:diff isnot# ''
    call Errorf('%s', l:diff)
endif

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