mirror of
https://github.com/SamEyeBam/animate.git
synced 2025-09-28 06:55:25 +00:00
larry babby and threejs for glsl
This commit is contained in:
52
webGl/my-threejs-test/node_modules/@parcel/utils/test/collection.test.js
generated
vendored
Normal file
52
webGl/my-threejs-test/node_modules/@parcel/utils/test/collection.test.js
generated
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
// @flow
|
||||
|
||||
import assert from 'assert';
|
||||
import {
|
||||
objectSortedEntries,
|
||||
objectSortedEntriesDeep,
|
||||
setDifference,
|
||||
} from '../src/collection';
|
||||
|
||||
describe('objectSortedEntries', () => {
|
||||
it('returns a sorted list of key/value tuples', () => {
|
||||
assert.deepEqual(
|
||||
objectSortedEntries({foo: 'foo', baz: 'baz', bar: 'bar'}),
|
||||
[
|
||||
['bar', 'bar'],
|
||||
['baz', 'baz'],
|
||||
['foo', 'foo'],
|
||||
],
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
describe('objectSortedEntriesDeep', () => {
|
||||
it('returns a deeply sorted list of key/value tuples', () => {
|
||||
assert.deepEqual(
|
||||
objectSortedEntriesDeep({
|
||||
foo: 'foo',
|
||||
baz: ['d', 'c'],
|
||||
bar: {g: 'g', b: 'b'},
|
||||
}),
|
||||
[
|
||||
[
|
||||
'bar',
|
||||
[
|
||||
['b', 'b'],
|
||||
['g', 'g'],
|
||||
],
|
||||
],
|
||||
['baz', ['d', 'c']],
|
||||
['foo', 'foo'],
|
||||
],
|
||||
);
|
||||
});
|
||||
});
|
||||
describe('setDifference', () => {
|
||||
it('returns a setDifference of two sets of T type', () => {
|
||||
assert.deepEqual(
|
||||
setDifference(new Set([1, 2, 3]), new Set([3, 4, 5])),
|
||||
new Set([1, 2, 4, 5]),
|
||||
);
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user