Skip to content

Tests for data with empty lines #50

Description

@mbtools

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);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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