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

Tests for data with empty lines #50

Open
mbtools opened this issue Oct 16, 2021 · 0 comments
Open

Tests for data with empty lines #50

mbtools opened this issue Oct 16, 2021 · 0 comments

Comments

@mbtools
Copy link

mbtools commented Oct 16, 2021

I appreciate the tests included with the repo. I'm porting the solution to another language. My port was not working when the input data had empty lines. I noticed that none of the test cases included empty lines. Might be worth adding some.

For example:

    const a = ['AA', '', 'b', 'c', 'ZZ', '', 'z', '', '', '90', '', 'x'];
    const b = ['AA', '', 'd', 'c', 'ZZ', '', '', 'z', '', '99', '', 'x'];
    const result = Diff3.diffComm(a, b);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant