@ejfdelgado/ejflab-common 1.16.6 → 1.16.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/MyTuples.js +4 -1
- package/src/MyTuples.test.js +6 -2
package/package.json
CHANGED
package/src/MyTuples.js
CHANGED
|
@@ -421,7 +421,7 @@ class MyTuples {
|
|
|
421
421
|
}
|
|
422
422
|
|
|
423
423
|
const compFun = (a, b) => {
|
|
424
|
-
return
|
|
424
|
+
return a.k.length - b.k.length;
|
|
425
425
|
};
|
|
426
426
|
batch['*'].sort(compFun);
|
|
427
427
|
batch['-'].sort(compFun);
|
|
@@ -432,6 +432,9 @@ class MyTuples {
|
|
|
432
432
|
myFreeze = JSON.stringify(nuevo);
|
|
433
433
|
pending.push(batch);
|
|
434
434
|
startProcess();
|
|
435
|
+
} else {
|
|
436
|
+
// Nothing to do...
|
|
437
|
+
setActivityStatus(false);
|
|
435
438
|
}
|
|
436
439
|
|
|
437
440
|
return batch;
|
package/src/MyTuples.test.js
CHANGED
|
@@ -173,8 +173,11 @@ const test = async () => {
|
|
|
173
173
|
throw Error(`referencia ${referencia} \nintercambio ${intercambio}\nresultadoTxt ${resultadoTxt}`);
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
+
prueba.e.r = differences.r;
|
|
177
|
+
prueba.e.t = differences.t;
|
|
178
|
+
prueba.e.total = differences.total;
|
|
176
179
|
if (sortify(prueba.e) != differencesTxt) {
|
|
177
|
-
throw Error(`Modificación fallida ${
|
|
180
|
+
throw Error(`Modificación fallida ${sortify(prueba.e)}\n${differencesTxt}`);
|
|
178
181
|
}
|
|
179
182
|
|
|
180
183
|
if (sortify(prueba.f) != sortify(afectado)) {
|
|
@@ -325,6 +328,7 @@ const testSimple = () => {
|
|
|
325
328
|
console.log(afectado3);
|
|
326
329
|
}
|
|
327
330
|
|
|
328
|
-
|
|
331
|
+
test();
|
|
332
|
+
//testSimple();
|
|
329
333
|
//testArrayCompress();
|
|
330
334
|
//testConverter();
|