mol_plot_all 1.2.614 → 1.2.616

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
@@ -953,6 +953,8 @@ var $;
953
953
  result = compare_map(left, right);
954
954
  else if (ArrayBuffer.isView(left))
955
955
  result = compare_buffer(left, right);
956
+ else if (Symbol.iterator in left)
957
+ result = compare_iterator(left[Symbol.iterator](), right[Symbol.iterator]());
956
958
  else if (Symbol.toPrimitive in left)
957
959
  result = compare_primitive(left, right);
958
960
  else
@@ -6612,7 +6614,7 @@ var $;
6612
6614
  $mol_assert_ok($mol_compare_deep(new Uint8Array([0]), new Uint8Array([0])));
6613
6615
  $mol_assert_not($mol_compare_deep(new Uint8Array([0]), new Uint8Array([1])));
6614
6616
  },
6615
- 'Custom comparator'() {
6617
+ 'Serializale'() {
6616
6618
  class User {
6617
6619
  name;
6618
6620
  rand;
@@ -6627,6 +6629,11 @@ var $;
6627
6629
  $mol_assert_ok($mol_compare_deep(new User('Jin'), new User('Jin')));
6628
6630
  $mol_assert_not($mol_compare_deep(new User('Jin'), new User('John')));
6629
6631
  },
6632
+ 'Iterable'() {
6633
+ $mol_assert_ok($mol_compare_deep(new URLSearchParams({ foo: 'bar' }), new URLSearchParams({ foo: 'bar' })));
6634
+ $mol_assert_not($mol_compare_deep(new URLSearchParams({ foo: 'xxx' }), new URLSearchParams({ foo: 'yyy' })));
6635
+ $mol_assert_not($mol_compare_deep(new URLSearchParams({ foo: 'xxx', bar: 'yyy' }), new URLSearchParams({ bar: 'yyy', foo: 'xxx' })));
6636
+ },
6630
6637
  });
6631
6638
  })($ || ($ = {}));
6632
6639
  //mol/compare/deep/deep.test.tsx