diff --git a/Tests/DifferTests/DiffTests.swift b/Tests/DifferTests/DiffTests.swift index b701544..3f6dcc7 100644 --- a/Tests/DifferTests/DiffTests.swift +++ b/Tests/DifferTests/DiffTests.swift @@ -123,4 +123,33 @@ class DiffTests: XCTestCase { .extendedDiff(to) .reduce("") { $0 + $1.debugDescription } } + + + func testRandomReorder() { + (0..<1000).forEach { _ in + let count = Int.random(in: 5..<10) + let originalOrder = (0..