From 9d1ad8cb2887f6592581670c1191451ac3a8012a Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Tue, 24 Oct 2017 16:41:19 +0200 Subject: [PATCH] fix item-splitting --- src/Struct/Item.js | 1 + test/y-array.tests.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Struct/Item.js b/src/Struct/Item.js index 8b88f96b..6dceb10c 100644 --- a/src/Struct/Item.js +++ b/src/Struct/Item.js @@ -35,6 +35,7 @@ export function splitHelper (y, a, b, diff) { if (o._origin === a) { o._origin = b } + foundOrigins.add(o) o = o._right } y.os.put(b) diff --git a/test/y-array.tests.js b/test/y-array.tests.js index a32c5a80..bf76e4f9 100644 --- a/test/y-array.tests.js +++ b/test/y-array.tests.js @@ -272,7 +272,7 @@ var arrayTransactions = [ ] test('y-array: Random tests (5)', async function randomArray5 (t) { - await applyRandomTests(t, arrayTransactions, 12) + await applyRandomTests(t, arrayTransactions, 30) }) test('y-array: Random tests (42)', async function randomArray42 (t) {