Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add diff functionality #2

arp242 opened this issue Aug 11, 2019 · 0 comments


Copy link

commented Aug 11, 2019

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)

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.