mol_regexp 0.0.758 → 0.0.760
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 +8 -1
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.test.js +8 -1
- package/web.test.js.map +1 -1
package/node.test.js
CHANGED
|
@@ -994,6 +994,8 @@ var $;
|
|
|
994
994
|
result = compare_map(left, right);
|
|
995
995
|
else if (ArrayBuffer.isView(left))
|
|
996
996
|
result = compare_buffer(left, right);
|
|
997
|
+
else if (Symbol.iterator in left)
|
|
998
|
+
result = compare_iterator(left[Symbol.iterator](), right[Symbol.iterator]());
|
|
997
999
|
else if (Symbol.toPrimitive in left)
|
|
998
1000
|
result = compare_primitive(left, right);
|
|
999
1001
|
else
|
|
@@ -1157,7 +1159,7 @@ var $;
|
|
|
1157
1159
|
$mol_assert_ok($mol_compare_deep(new Uint8Array([0]), new Uint8Array([0])));
|
|
1158
1160
|
$mol_assert_not($mol_compare_deep(new Uint8Array([0]), new Uint8Array([1])));
|
|
1159
1161
|
},
|
|
1160
|
-
'
|
|
1162
|
+
'Serializale'() {
|
|
1161
1163
|
class User {
|
|
1162
1164
|
name;
|
|
1163
1165
|
rand;
|
|
@@ -1172,6 +1174,11 @@ var $;
|
|
|
1172
1174
|
$mol_assert_ok($mol_compare_deep(new User('Jin'), new User('Jin')));
|
|
1173
1175
|
$mol_assert_not($mol_compare_deep(new User('Jin'), new User('John')));
|
|
1174
1176
|
},
|
|
1177
|
+
'Iterable'() {
|
|
1178
|
+
$mol_assert_ok($mol_compare_deep(new URLSearchParams({ foo: 'bar' }), new URLSearchParams({ foo: 'bar' })));
|
|
1179
|
+
$mol_assert_not($mol_compare_deep(new URLSearchParams({ foo: 'xxx' }), new URLSearchParams({ foo: 'yyy' })));
|
|
1180
|
+
$mol_assert_not($mol_compare_deep(new URLSearchParams({ foo: 'xxx', bar: 'yyy' }), new URLSearchParams({ bar: 'yyy', foo: 'xxx' })));
|
|
1181
|
+
},
|
|
1175
1182
|
});
|
|
1176
1183
|
})($ || ($ = {}));
|
|
1177
1184
|
//mol/compare/deep/deep.test.tsx
|