forked from wokalski/Diff.swift
-
Notifications
You must be signed in to change notification settings - Fork 74
Open
Description
I am interested to find a good solution for multi-section diffing. So I came across Differ and though I am missing the functionality for detecting an update to an existing object I gave it a try.
A dataset like this creates a crash:
let items = [
[
StringArray(
elements: [
"🌞",
"🐩",
],
key: "First"
),
StringArray(
elements: [
"👋🏻",
"🎁",
"🐩",
],
key: "Second"
),
],
[
StringArray(
elements: [
"🎁",
"👋🏻",
],
key: "Second"
),
StringArray(
elements: [
"🌞",
],
key: "First"
),
StringArray(
elements: [
"🌞",
],
key: "First"
)
],
]
A dataset like this create inconsistant data when shuffling. Sometimes the order is correct, but sometimes it is't (see screenshot):
let items = [
[
StringArray(
elements: [
"🌞",
"🐩",
],
key: "First"
),
StringArray(
elements: [
"👋🏻",
"🎁",
"🐩",
],
key: "Second"
),
],
[
StringArray(
elements: [
"🎁",
"👋🏻",
],
key: "Second"
),
StringArray(
elements: [
"🌞",
],
key: "First"
),
],
]
Metadata
Metadata
Assignees
Labels
No labels
