mol_plot_all 1.2.323 → 1.2.326

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/node.test.js CHANGED
@@ -1653,7 +1653,7 @@ var $;
1653
1653
  }
1654
1654
  return true;
1655
1655
  }
1656
- function compare_iterator(left, right, compare) {
1656
+ function compare_iterator(left, right) {
1657
1657
  while (true) {
1658
1658
  const left_next = left.next();
1659
1659
  const right_next = right.next();
@@ -1661,7 +1661,7 @@ var $;
1661
1661
  return false;
1662
1662
  if (left_next.done)
1663
1663
  break;
1664
- if (!compare(left_next.value, right_next.value))
1664
+ if (!$mol_compare_deep(left_next.value, right_next.value))
1665
1665
  return false;
1666
1666
  }
1667
1667
  return true;
@@ -1669,13 +1669,13 @@ var $;
1669
1669
  function compare_set(left, right) {
1670
1670
  if (left.size !== right.size)
1671
1671
  return false;
1672
- return compare_iterator(left.values(), right.values(), $mol_compare_deep);
1672
+ return compare_iterator(left.values(), right.values());
1673
1673
  }
1674
1674
  function compare_map(left, right) {
1675
1675
  if (left.size !== right.size)
1676
1676
  return false;
1677
- return compare_iterator(left.keys(), right.keys(), Object.is)
1678
- && compare_iterator(left.values(), right.values(), $mol_compare_deep);
1677
+ return compare_iterator(left.keys(), right.keys())
1678
+ && compare_iterator(left.values(), right.values());
1679
1679
  }
1680
1680
  function compare_pojo(left, right) {
1681
1681
  const left_keys = Object.getOwnPropertyNames(left);
@@ -6388,8 +6388,9 @@ var $;
6388
6388
  'Map'() {
6389
6389
  $mol_assert_ok($mol_compare_deep(new Map, new Map));
6390
6390
  $mol_assert_ok($mol_compare_deep(new Map([[1, [2]]]), new Map([[1, [2]]])));
6391
+ $mol_assert_ok($mol_compare_deep(new Map([[[1], 2]]), new Map([[[1], 2]])));
6391
6392
  $mol_assert_not($mol_compare_deep(new Map([[1, 2]]), new Map([[1, 3]])));
6392
- $mol_assert_not($mol_compare_deep(new Map([[[1], 2]]), new Map([[[1], 2]])));
6393
+ $mol_assert_not($mol_compare_deep(new Map([[[1], 2]]), new Map([[[3], 2]])));
6393
6394
  },
6394
6395
  'Set'() {
6395
6396
  $mol_assert_ok($mol_compare_deep(new Set, new Set));