Home
last modified time | relevance | path

Searched refs:deepEqual (Results 1 – 25 of 45) sorted by relevance

12

/plugin/sequencediagram/bower_components/lodash/vendor/underscore/test/
Darrays.js9 assert.deepEqual(_.first([1, 2, 3], 0), [], 'returns an empty array when n <= 0 (0 case)');
10 …assert.deepEqual(_.first([1, 2, 3], -1), [], 'returns an empty array when n <= 0 (negative case)');
11 assert.deepEqual(_.first([1, 2, 3], 2), [1, 2], 'can fetch the first n elements');
12 assert.deepEqual(_.first([1, 2, 3], 5), [1, 2, 3], 'returns the whole array if n > length');
16 assert.deepEqual(result, [1, 1], 'works well with _.map');
34 assert.deepEqual(_.rest(numbers), [2, 3, 4], 'fetches all but the first element');
35 assert.deepEqual(_.rest(numbers, 0), [1, 2, 3, 4], 'returns the whole array when index is 0');
36 assert.deepEqual(_.rest(numbers, 2), [3, 4], 'returns elements starting at the given index');
38 assert.deepEqual(result, [2, 3, 4], 'works on an arguments object');
40 assert.deepEqual(_.flatten(result), [2, 3, 2, 3], 'works well with _.map');
[all …]
Dcollections.js13 assert.deepEqual(answers, [5, 10, 15], 'context object property accessed');
17 assert.deepEqual(answers, [1, 2, 3], 'can iterate a simple array');
23 …assert.deepEqual(answers, ['one', 'two', 'three'], 'iterating over objects works, and ignores the …
83 assert.deepEqual(_.toArray(trick), [length], 'toArray on obj with length: ' + length);
84 assert.deepEqual(_.shuffle(trick), [length], 'shuffle on obj with length: ' + length);
85 assert.deepEqual(_.sample(trick), length, 'sample on obj with length: ' + length);
146 assert.deepEqual(doubled, [2, 4, 6], 'doubled numbers');
149 assert.deepEqual(tripled, [3, 6, 9], 'tripled numbers with context');
152 assert.deepEqual(doubled, [2, 4, 6], 'OO-style doubled numbers');
157 assert.deepEqual(ids, ['1', '2'], 'Can use collection methods on Array-likes.');
[all …]
Dchaining.js35 assert.deepEqual(numbers, [10, 6, 2], 'filtered and reversed the numbers');
47 assert.deepEqual(numbers, [10, 6, 2], 'filtered and reversed the numbers');
59 assert.deepEqual(numbers, [34, 10, 8, 6, 4, 2, 10, 10], 'can chain together array functions.');
64 assert.deepEqual(instance.splice(1, 3).value(), [1, 5]);
65 assert.deepEqual(instance.splice(1, 0).value(), [1, 5]);
66 assert.deepEqual(instance.splice(1, 1).value(), [1]);
67 assert.deepEqual(instance.splice(0, 1).value(), [], '#397 Can create empty array');
72 assert.deepEqual(instance.shift().value(), [2, 3]);
73 assert.deepEqual(instance.shift().value(), [3]);
74 assert.deepEqual(instance.shift().value(), [], '#397 Can create empty array');
[all …]
Dobjects.js9 … assert.deepEqual(_.keys({one: 1, two: 2}), ['one', 'two'], 'can extract the keys from an object');
12 assert.deepEqual(_.keys(a), ['1'], 'is not fooled by sparse arrays; see issue #95');
13 assert.deepEqual(_.keys(null), []);
14 assert.deepEqual(_.keys(void 0), []);
15 assert.deepEqual(_.keys(1), []);
16 assert.deepEqual(_.keys('a'), []);
17 assert.deepEqual(_.keys(true), []);
35 assert.deepEqual(_.keys(trouble).sort(), troubleKeys, 'matches non-enumerable properties');
39 …assert.deepEqual(_.allKeys({one: 1, two: 2}), ['one', 'two'], 'can extract the allKeys from an obj…
42 assert.deepEqual(_.allKeys(a), ['1'], 'is not fooled by sparse arrays; see issue #95');
[all …]
Dfunctions.js79 assert.deepEqual(widget.options, {a: 1});
150 assert.deepEqual(upper.cache, {foo: 'FOO', bar: 'BAR'});
163 assert.deepEqual(hashed.cache, {YEP: 'yep'}, 'takes a hasher');
613 assert.deepEqual(ret, [noop, ['whats', 'your'], 'vector', 'victor']);
693 assert.deepEqual(_.toArray(cb(1, 2, 3)), _.range(1, 4));
694 assert.deepEqual(_.toArray(cb(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)), _.range(1, 11));
710 assert.deepEqual(_.countBy(collection, /b/g), {0: 1, 1: 1, 2: 1});
712 assert.deepEqual(_.filter(collection, /b/g), ['bar', 'bbiz']);
717 assert.deepEqual(_.groupBy(collection, /b/g), {0: ['foo'], 1: ['bar'], 2: ['bbiz']});
718 assert.deepEqual(_.indexBy(collection, /b/g), {0: 'foo', 1: 'bar', 2: 'bbiz'});
[all …]
/plugin/asciidocjs/node_modules/call-bind/test/
Dindex.js24 t.deepEqual(func(), [undefined, undefined, undefined], 'unbound func with too few args');
25 t.deepEqual(func(1, 2), [undefined, 1, 2], 'unbound func with right args');
26 t.deepEqual(func(1, 2, 3), [undefined, 1, 2], 'unbound func with too many args');
30 t.deepEqual(bound(), [undefined, undefined, undefined], 'bound func with too few args');
31 t.deepEqual(bound(1, 2), [1, 2, undefined], 'bound func with right args');
32 t.deepEqual(bound(1, 2, 3), [1, 2, 3], 'bound func with too many args');
36 …t.deepEqual(boundR(), [sentinel, undefined, undefined], 'bound func with receiver, with too few ar…
37 t.deepEqual(boundR(1, 2), [sentinel, 1, 2], 'bound func with receiver, with right args');
38 t.deepEqual(boundR(1, 2, 3), [sentinel, 1, 2], 'bound func with receiver, with too many args');
42 …t.deepEqual(boundArg(), [sentinel, 1, undefined], 'bound func with receiver and arg, with too few …
[all …]
/plugin/sequencediagram/bower_components/lodash/test/
Dtest-fp.js105 assert.deepEqual(array, [1, 2, 3, 4]);
106 assert.deepEqual(actual, [1, 3]);
119 assert.deepEqual(array, [2, 4]);
120 assert.deepEqual(actual, [1, 3]);
121 assert.deepEqual(remove(), []);
132 assert.deepEqual(array, [1, 2, 3, 4]);
133 assert.deepEqual(actual, [1, 3]);
148 assert.deepEqual(array, [2, 4]);
149 assert.deepEqual(actual, [1, 3]);
150 assert.deepEqual(lodash.remove(), []);
[all …]
Dtest.js871 assert.deepEqual(actual, [[otherObject], [object], [object]], label);
885 assert.deepEqual(actual, [object, object], label);
899 assert.deepEqual(actual, [{}, false, ''], label);
908 assert.deepEqual(actual, 1, label);
920 assert.deepEqual(actual, [], label);
946 assert.deepEqual(actual, expected);
964 assert.deepEqual(actual, expected);
1078 assert.deepEqual(cache.get(key), value);
1124 assert.deepEqual(actual, expected);
1140 assert.deepEqual(actual, expected);
[all …]
/plugin/asciidocjs/node_modules/minimist/test/
Ddash.js8 t.deepEqual(parse(['-n', '-']), { n: '-', _: [] });
9 t.deepEqual(parse(['--nnn', '-']), { nnn: '-', _: [] });
10 t.deepEqual(parse(['-']), { _: ['-'] });
11 t.deepEqual(parse(['-f-']), { f: '-', _: [] });
12 t.deepEqual(
16 t.deepEqual(
24 t.deepEqual(parse(['-a', '--', 'b']), { a: true, _: ['b'] });
25 t.deepEqual(parse(['--a', '--', 'b']), { a: true, _: ['b'] });
30 t.deepEqual(
40 t.deepEqual(parse(['-n', '---']), { n: '---', _: [] });
[all …]
Dnum.js15 t.deepEqual(argv, {
23 t.deepEqual(typeof argv.x, 'number');
24 t.deepEqual(typeof argv.y, 'number');
25 t.deepEqual(typeof argv.z, 'number');
26 t.deepEqual(typeof argv.w, 'string');
27 t.deepEqual(typeof argv.hex, 'number');
28 t.deepEqual(typeof argv._[0], 'number');
34 t.deepEqual(argv, { x: 1234, _: [789] });
35 t.deepEqual(typeof argv.x, 'number');
36 t.deepEqual(typeof argv._[0], 'number');
Dshort.js8 t.deepEqual(parse(['-n123']), { n: 123, _: [] });
9 t.deepEqual(
16 t.deepEqual(
21 t.deepEqual(
26 t.deepEqual(
31 t.deepEqual(
36 t.deepEqual(
41 t.deepEqual(
61 t.deepEqual(
Dlong.js7 t.deepEqual(
12 t.deepEqual(
17 t.deepEqual(
22 t.deepEqual(
27 t.deepEqual(
Dparse.js7 t.deepEqual(
12 t.deepEqual(
21 t.deepEqual(
49 t.deepEqual(argv, { t: true, _: ['moo'] });
50 t.deepEqual(typeof argv.t, 'boolean');
60 t.deepEqual(argv, {
66 t.deepEqual(typeof argv.verbose, 'boolean');
67 t.deepEqual(typeof argv.t, 'boolean');
73 t.deepEqual(args, { _: [], s: 'X\nX' });
80 t.deepEqual(args, { _: [], s: 'X\nX' });
[all …]
Dall_bool.js11 t.deepEqual(argv, {
16 t.deepEqual(typeof argv.honk, 'boolean');
25 t.deepEqual(argv, {
32 t.deepEqual(typeof argv.honk, 'boolean');
Dkv_short.js10 t.deepEqual(argv, { b: 123, _: [] });
17 t.deepEqual(argv, { a: 'whatever', b: 'robots', _: [] });
24 t.deepEqual(argv, { k: 'a=b', _: [] });
31 t.deepEqual(argv, { a: true, b: 'c', _: [] });
Dbool.js12 t.deepEqual(argv, {
18 t.deepEqual(typeof argv.verbose, 'boolean');
19 t.deepEqual(typeof argv.t, 'boolean');
29 t.deepEqual(argv, {
36 t.deepEqual(typeof argv.x, 'boolean');
37 t.deepEqual(typeof argv.y, 'boolean');
38 t.deepEqual(typeof argv.z, 'boolean');
/plugin/asciidocjs/node_modules/has-symbols/test/
Dtests.js46 t.deepEqual(Object.keys(obj), [], 'no enumerable own keys on symbol-valued object');
47 t.deepEqual(Object.getOwnPropertyNames(obj), [], 'no own names on symbol-valued object');
48 t.deepEqual(Object.getOwnPropertySymbols(obj), [sym], 'one own symbol on symbol-valued object');
50 t.deepEqual(Object.getOwnPropertyDescriptor(obj, sym), {
/plugin/asciidocjs/node_modules/pug-filters/node_modules/wordwrap/test/
Dwrap.js14 assert.deepEqual(chunks, words.splice(0, chunks.length));
28 assert.deepEqual(chunks, words.splice(0, chunks.length));
29 assert.deepEqual(line.slice(0, 20), new Array(20 + 1).join(' '));
/plugin/asciidocjs/node_modules/function-bind/test/
Dindex.js34 st.deepEqual(args, [1, 2, 3]);
48 st.deepEqual(args, [1, 2, 3, 4, 5, 6]);
63 st.deepEqual(args, [1, 2, 3], 'passed arguments are correct');
77 st.deepEqual(args, [1, 2, 3, 4, 5, 6], 'passed arguments are correct');
130 st.deepEqual(args, [1, 2, 3], 'supplies passed arguments');
145 st.deepEqual(args, [1, 2, 3, 4, 5, 6], 'supplies bound and passed arguments');
161 st.deepEqual(args, [1, 2, 3], 'passed arguments are correct');
177 st.deepEqual(args, [1, 2, 3, 4, 5, 6], 'passed arguments are correct');
/plugin/asciidocjs/node_modules/wordwrap/test/
Dwrap.js14 t.deepEqual(chunks, words.splice(0, chunks.length));
29 t.deepEqual(chunks, words.splice(0, chunks.length));
30 t.deepEqual(line.slice(0, 20), new Array(20 + 1).join(' '));
/plugin/tablelayout/_jstest/
DfloatTable.tests.js34 assert.deepEqual(actual_html, expected_html.replace(/\s\s+/g, ' ').trim(), 'html is ok');
63 assert.deepEqual(actual_html, expected_html.replace(/\s\s+/g, ' ').trim(), 'html is ok');
DcolWidths.tests.js34 assert.deepEqual(actual_html, expected_html.replace(/\s\s+/g, ' ').trim(), 'html is ok');
62 assert.deepEqual(actual_html, expected_html.replace(/\s\s+/g, ' ').trim(), 'html is ok');
/plugin/sequencediagram/bower_components/lodash/vendor/backbone/test/
Dcollection.js23 assert.deepEqual(col.pluck('label'), ['a', 'b', 'c', 'd']);
29 assert.deepEqual(col.pluck('label'), ['a', 'b', 'c', 'd']);
33 assert.deepEqual(col.pluck('label'), ['d', 'c', 'b', 'a']);
44 assert.deepEqual(collection.pluck('id'), [1, 2, 3]);
334 assert.deepEqual(collection.pluck('id'), [3, 2, 1]);
339 assert.deepEqual(collection.pluck('id'), [1, 2, 3]);
367 assert.deepEqual(result, [], 'returns empty array when nothing removed');
732 assert.deepEqual(wrapped
737 assert.deepEqual(col.difference([c, d]), [a, b]);
741 assert.deepEqual(col.groupBy(function(model){ return model.id; })[first.id], [first]);
[all …]
Dmodel.js148 assert.deepEqual(model.keys(), ['foo', 'bar', 'baz']);
149 assert.deepEqual(model.values(), ['a', 'b', 'c']);
150 assert.deepEqual(model.invert(), {a: 'foo', b: 'bar', c: 'baz'});
151 assert.deepEqual(model.pick('foo', 'baz'), {foo: 'a', baz: 'c'});
152 assert.deepEqual(model.omit('foo', 'bar'), {baz: 'c'});
157 assert.deepEqual(model.chain().pick('a', 'b', 'c').values().compact().value(), [1, 2]);
311 assert.deepEqual([attr, main, error], [1, 1, 1]);
492 assert.deepEqual(model.changedAttributes(), false);
509 assert.deepEqual(model.changedAttributes(), false);
659 assert.deepEqual(doc.attributes, {b: 2, d: 4});
[all …]
/plugin/asciidocjs/node_modules/constantinople/test/
Dindex.js46 assert.deepEqual(constaninople.toConstant('[5 + 3 + 10]'), [5 + 3 + 10]);
52 assert.deepEqual(constaninople.toConstant("{'class': [('data')]}"), {

12