Skip to content

Commit 2a02d21

Browse files
committed
Add failing test for #40
1 parent 99bf616 commit 2a02d21

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,13 @@ def test_make_patch_unicode(self):
359359
res = patch.apply(src)
360360
self.assertEqual(res, dst)
361361

362+
def test_issue40(self):
363+
""" Tests an issue in _split_by_common_seq reported in #40 """
364+
365+
src = [8, 7, 2, 1, 0, 9, 4, 3, 5, 6]
366+
dest = [7, 2, 1, 0, 9, 4, 3, 6, 5, 8]
367+
patch = jsonpatch.make_patch(src, dest)
368+
362369

363370
class InvalidInputTests(unittest.TestCase):
364371

0 commit comments

Comments
 (0)