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

Long arrays that do not change are showing as changed #124

Open
aleclandow opened this issue Feb 23, 2024 · 0 comments
Open

Long arrays that do not change are showing as changed #124

aleclandow opened this issue Feb 23, 2024 · 0 comments

Comments

@aleclandow
Copy link

diff(
      [
        ['A', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'],
        ['B', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'],
      ],
      [
        ['A', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'],
        ['B', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'],
      ]
)

yields an output of

[
    [
        "+",
        ["A", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"]
    ],
    [
        "~",
        [
            ["-", "A"],  [ "+", "B" ], [" "], [" "], [" "], [" "], [" "], [" "], [" "], [" "], [" "], [" "], [" "], [" "]
        ]
    ],
    [
        "-",
         ["B", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"]
    ]
]

The output shows no change if the array has length 12 or fewer.

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