Skip to content

Commit

Permalink
Merge pull request #964 from davidchambers/descriptions
Browse files Browse the repository at this point in the history
remove unnecessary adverbs
  • Loading branch information
davidchambers committed Mar 22, 2015
2 parents 7aa2cf4 + af9fef4 commit 2d812ad
Show file tree
Hide file tree
Showing 56 changed files with 57 additions and 57 deletions.
2 changes: 1 addition & 1 deletion test/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('add', function() {
assert.strictEqual(R.add(3, 7), 10);
});

it('is automatically curried', function() {
it('is curried', function() {
var incr = R.add(1);
assert.strictEqual(incr(42), 43);
});
Expand Down
2 changes: 1 addition & 1 deletion test/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe('all', function() {
});
});

it('is automatically curried', function() {
it('is curried', function() {
var count = 0;
var test = function(n) {count += 1; return even(n);};
assert.strictEqual(R.all(test)([2, 4, 6, 7, 8, 10]), false);
Expand Down
2 changes: 1 addition & 1 deletion test/any.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ describe('any', function() {
});
});

it('is automatically curried', function() {
it('is curried', function() {
var count = 0;
var test = function(n) {count += 1; return odd(n);};
assert.strictEqual(R.any(test)([2, 4, 6, 7, 8, 10]), true);
Expand Down
2 changes: 1 addition & 1 deletion test/aperture.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('aperture', function() {
assert.deepEqual(R.aperture(1, []), []);
});

it('is automatically curried', function() {
it('is curried', function() {
var pairwise = R.aperture(2);
assert.deepEqual(pairwise(sevenLs), [[1, 2], [2, 3], [3, 4], [4, 5], [5, 6], [6, 7]]);
});
Expand Down
2 changes: 1 addition & 1 deletion test/apply.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('apply', function() {
assert.strictEqual(R.apply(Math.max, [1, 2, 3, -99, 42, 6, 7]), 42);
});

it('is automatically curried', function() {
it('is curried', function() {
assert.strictEqual(R.apply(Math.max)([1, 2, 3, -99, 42, 6, 7]), 42);
});

Expand Down
2 changes: 1 addition & 1 deletion test/assoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('assoc', function() {
assert.strictEqual(obj2.f, obj1.f);
});

it('is properly curried', function() {
it('is curried', function() {
var obj1 = {a: 1, b: {c: 2, d: 3}, e: 4, f: 5};
var expected = {a: 1, b: {c: 2, d: 3}, e: {x: 42}, f: 5};
var f = R.assoc('e');
Expand Down
2 changes: 1 addition & 1 deletion test/assocPath.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('assocPath', function() {
assert.strictEqual(obj2.f, obj1.f);
});

it('is properly curried', function() {
it('is curried', function() {
var obj1 = {a: {b: 1, c: 2, d: {e: 3}}, f: {g: {h: 4, i: 5, j: {k: 6, l: 7}}}, m: 8};
var expected = {a: {b: 1, c: 2, d: {e: 3}}, f: {g: {h: 4, i: {x: 42}, j: {k: 6, l: 7}}}, m: 8};
var f = R.assocPath(['f', 'g', 'i']);
Expand Down
2 changes: 1 addition & 1 deletion test/charAt.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('charAt', function() {
assert.strictEqual(R.charAt(8, 'abcdefghijklm'), 'i');
});

it('is automatically curried', function() {
it('is curried', function() {
var at8 = R.charAt(8);
assert.strictEqual(at8('abcdefghijklm'), 'i');
});
Expand Down
2 changes: 1 addition & 1 deletion test/charCodeAt.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('charCodeAt', function() {
assert.strictEqual(R.charCodeAt(8, 'abcdefghijklm'), 105); // 'a' ~ 97, 'b' ~ 98, ... 'i' ~ 105
});

it('is automatically curried', function() {
it('is curried', function() {
var at8 = R.charCodeAt(8);
assert.strictEqual(at8('abcdefghijklm'), 105);
});
Expand Down
2 changes: 1 addition & 1 deletion test/countBy.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe('countBy', function() {
});
});

it('is automatically curried', function() {
it('is curried', function() {
var counter = R.countBy(R.prop('genre'));
assert.deepEqual(counter(albums), {
Baroque: 2, Rock: 2, Jazz: 2, Romantic: 1, Metal: 1, Modern: 1, Broadway: 1, Folk: 1, Classical: 1
Expand Down
2 changes: 1 addition & 1 deletion test/createMapEntry.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('createMapEntry', function() {
assert.deepEqual(R.createMapEntry('foo', 42), {foo: 42});
});

it('is automatically curried', function() {
it('is curried', function() {
assert.deepEqual(R.createMapEntry('foo')(42), {foo: 42});
});
});
2 changes: 1 addition & 1 deletion test/drop.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('drop', function() {
assert.deepEqual(R.drop(20, ['a', 'b', 'c', 'd', 'e', 'f', 'g']), []);
});

it('is automatically curried', function() {
it('is curried', function() {
var drop2 = R.drop(2);
assert.deepEqual(drop2(['a', 'b', 'c', 'd', 'e']), ['c', 'd', 'e']);
assert.deepEqual(drop2(['x', 'y', 'z']), ['z']);
Expand Down
2 changes: 1 addition & 1 deletion test/dropWhile.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('dropWhile', function() {
assert.strictEqual(sublist[2], 7);
});

it('is automatically curried', function() {
it('is curried', function() {
var dropLt7 = R.dropWhile(function(x) {return x < 7;});
assert.deepEqual(dropLt7([1, 3, 5, 7, 9]), [7, 9]);
assert.deepEqual(dropLt7([2, 4, 6, 8, 10]), [8, 10]);
Expand Down
2 changes: 1 addition & 1 deletion test/eqProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe('eqProps', function() {
assert.strictEqual(R.eqProps('name', {name: 'fred', age: 10}, {name: 'franny', age: 10}), false);
});

it('is automatically curried', function() {
it('is curried', function() {
var sameName = R.eqProps('name');
assert.strictEqual(sameName({name: 'fred', age: 10}, {name: 'fred', age: 12}), true);
});
Expand Down
2 changes: 1 addition & 1 deletion test/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('filter', function() {
assert.strictEqual(R.filter(function(s) { return s; }, f), 'called f.filter');
});

it('is automatically curried', function() {
it('is curried', function() {
var onlyEven = R.filter(even);
assert.deepEqual(onlyEven([1, 2, 3, 4, 5, 6, 7]), [2, 4, 6]);
});
Expand Down
2 changes: 1 addition & 1 deletion test/filterIndexed.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('filterIndexed', function() {
assert.deepEqual(R.filterIndexed(function(x) { return x > 100; }, []), []);
});

it('is automatically curried', function() {
it('is curried', function() {
var everyOtherPosition = R.filterIndexed(everyOther);
assert.deepEqual(everyOtherPosition([8, 6, 7, 5, 3, 0, 9]), [8, 7, 3, 9]);
});
Expand Down
2 changes: 1 addition & 1 deletion test/groupBy.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('groupBy', function() {
});
});

it('is automatically curried', function() {
it('is curried', function() {
var splitByType = R.groupBy(R.prop('type'));
assert.deepEqual(splitByType([
{type: 'A', val: 10},
Expand Down
2 changes: 1 addition & 1 deletion test/into.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe('into', function() {
assert.deepEqual(R.into([], R.filter(isOdd), obj), [1, 3]);
});

it('is automatically curried', function() {
it('is curried', function() {
var intoArray = R.into([]);
var add2 = R.map(add(2));
var result = intoArray(add2);
Expand Down
2 changes: 1 addition & 1 deletion test/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe('map', function() {
assert.strictEqual(xcomp.f, dec);
});

it('is automatically curried', function() {
it('is curried', function() {
var inc = R.map(add1);
assert.deepEqual(inc([1, 2, 3]), [2, 3, 4]);
});
Expand Down
2 changes: 1 addition & 1 deletion test/mapAccum.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe('mapAccum', function() {
assert.deepEqual(R.mapAccum(concat, [], []), [[], []]);
});

it('is automatically curried', function() {
it('is curried', function() {
var addOrConcat = R.mapAccum(add);
var sum = addOrConcat(0);
var cat = addOrConcat('');
Expand Down
2 changes: 1 addition & 1 deletion test/mapAccumRight.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('mapAccumRight', function() {
assert.deepEqual(R.mapAccumRight(R.concat, [], []), [[], []]);
});

it('is automatically curried', function() {
it('is curried', function() {
var addOrConcat = R.mapAccumRight(add);
var sum = addOrConcat(0);
var cat = addOrConcat('');
Expand Down
2 changes: 1 addition & 1 deletion test/mapIndexed.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('mapIndexed', function() {
assert.deepEqual(R.mapIndexed(squareEnds, [8, 6, 7, 5, 3, 0, 9]), [64, 6, 7, 5, 3, 0, 81]);
});

it('is automatically curried', function() {
it('is curried', function() {
var makeSquareEnds = R.mapIndexed(squareEnds);
assert.deepEqual(makeSquareEnds([8, 6, 7, 5, 3, 0, 9]), [64, 6, 7, 5, 3, 0, 81]);
});
Expand Down
2 changes: 1 addition & 1 deletion test/mapObjIndexed.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('mapObjIndexed', function() {
{a: 64, b: 6, c: 7, d: 5, e: 9, f: 0, g: 9});
});

it('is automatically curried', function() {
it('is curried', function() {
var makeSquareVowels = R.mapObjIndexed(squareVowels);
assert.deepEqual(makeSquareVowels({a: 8, b: 6, c: 7, d: 5, e: 3, f: 0, g: 9}),
{a: 64, b: 6, c: 7, d: 5, e: 9, f: 0, g: 9});
Expand Down
2 changes: 1 addition & 1 deletion test/match.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('match', function() {
assert.strictEqual(R.match(re, 'B1-afn'), null);
});

it('is automatically curried', function() {
it('is curried', function() {
var format = R.match(re);
assert.strictEqual(format('B17-afn').length, 1);
assert.strictEqual(format('B1-afn'), null);
Expand Down
2 changes: 1 addition & 1 deletion test/maxBy.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('maxBy', function() {
assert.strictEqual(R.maxBy(R.prop('x'), []), undefined);
});

it('is properly curried', function() {
it('is curried', function() {
var highestX = R.maxBy(R.prop('x'));
assert.deepEqual(highestX([{x: 3, y: 1}, {x: 5, y: 10}, {x: -2, y: 0}]), {x: 5, y: 10});
});
Expand Down
2 changes: 1 addition & 1 deletion test/minBy.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('minBy', function() {
assert.strictEqual(typeof(R.minBy(R.prop('x'), [])), 'undefined');
});

it('is properly curried', function() {
it('is curried', function() {
var lowestX = R.minBy(R.prop('x'));
assert.deepEqual(lowestX([{x: 3, y: 1}, {x: 5, y: 10}, {x: -2, y: 0}]), {x: -2, y: 0});
});
Expand Down
2 changes: 1 addition & 1 deletion test/multiply.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('multiply', function() {
assert.strictEqual(R.multiply(6, 7), 42);
});

it('is automatically curried', function() {
it('is curried', function() {
var dbl = R.multiply(2);
assert.strictEqual(dbl(15), 30);
});
Expand Down
2 changes: 1 addition & 1 deletion test/none.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('none', function() {
assert.strictEqual(R.none(hasA, xs), false);
});

it('is automatically curried', function() {
it('is curried', function() {
assert.strictEqual(R.none(even)([1, 3, 5, 6, 7, 9]), false);
});
});
2 changes: 1 addition & 1 deletion test/omit.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('omit', function() {
assert.deepEqual(R.omit(['w', 'x', 'y'], obj), {v: 10, z: 50});
});

it('is automatically curried', function() {
it('is curried', function() {
var skipAB = R.omit(['a', 'b']);
assert.deepEqual(skipAB(obj), {c: 3, d: 4, e: 5, f: 6});
});
Expand Down
2 changes: 1 addition & 1 deletion test/pick.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('pick', function() {
assert.deepEqual(R.pick(['w', 'x', 'y'], obj), {w: 20, x: 30, y: 40});
});

it('is automatically curried', function() {
it('is curried', function() {
var copyAB = R.pick(['a', 'b']);
assert.deepEqual(copyAB(obj), {a: 1, b: 2});
});
Expand Down
2 changes: 1 addition & 1 deletion test/pickAll.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('pickAll', function() {
assert.deepEqual(R.pickAll(['a', 'c', 'g'], obj), {a: 1, c: 3, g: undefined});
});

it('is automatically curried', function() {
it('is curried', function() {
var copyAB = R.pickAll(['a', 'b']);
assert.deepEqual(copyAB(obj), {a: 1, b: 2});
});
Expand Down
2 changes: 1 addition & 1 deletion test/pickBy.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe('pickBy', function() {
});


it('is automatically curried', function() {
it('is curried', function() {
var copier = R.pickBy(R.T);
assert.deepEqual(copier(obj), obj);
});
Expand Down
2 changes: 1 addition & 1 deletion test/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('project', function() {
]);
});

it('is automatically curried', function() {
it('is curried', function() {
var myFields = R.project(['name', 'age']);
assert.deepEqual(myFields(kids), [
{name: 'Abby', age: 7},
Expand Down
2 changes: 1 addition & 1 deletion test/propEq.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('propEq', function() {
assert.strictEqual(R.propEq('hair', 'blond', obj2), false);
});

it('is automatically curried', function() {
it('is curried', function() {
var kids = [obj1, obj2, obj3, obj4];
var hairMatch = R.propEq('hair');
assert.strictEqual(typeof hairMatch, 'function');
Expand Down
2 changes: 1 addition & 1 deletion test/props.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('props', function() {
assert.strictEqual(ps[1], void 0);
});

it('is automatically curried', function() {
it('is curried', function() {
assert.deepEqual(R.props(['a', 'b'])(obj), [1, 2]);
});
});
2 changes: 1 addition & 1 deletion test/range.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('range', function() {
assert.deepEqual(R.range(5, 5), []);
});

it('is automatically curried', function() {
it('is curried', function() {
var from10 = R.range(10);
assert.deepEqual(from10(15), [10, 11, 12, 13, 14]);
});
Expand Down
2 changes: 1 addition & 1 deletion test/reduce.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('reduce', function() {
assert.deepEqual(R.reduce(R.concat, [], []), []);
});

it('is automatically curried', function() {
it('is curried', function() {
var addOrConcat = R.reduce(add);
var sum = addOrConcat(0);
var cat = addOrConcat('');
Expand Down
2 changes: 1 addition & 1 deletion test/reduceIndexed.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('reduceIndexed', function() {
}, 0, list);
});

it('is automatically curried', function() {
it('is curried', function() {
var addOrConcat = R.reduceIndexed(R.add);
var sum = addOrConcat(0);
var cat = addOrConcat('');
Expand Down
2 changes: 1 addition & 1 deletion test/reduceRight.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('reduceRight', function() {
assert.strictEqual(R.reduceRight(avg, 0, []), 0);
});

it('is automatically curried', function() {
it('is curried', function() {
var something = R.reduceRight(avg, 54);
var rcat = R.reduceRight(R.add, '');
assert.strictEqual(something([12, 4, 10, 6]), 12);
Expand Down
4 changes: 2 additions & 2 deletions test/reduceRightIndexed.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('reduceRightIndexed', function() {
assert.strictEqual(R.reduceRightIndexed(function(a, n, idx) { return a.concat(idx); }, memo, []), memo);
});

it('is automatically curried', function() {
it('is curried', function() {
var something = R.reduceRightIndexed(function(acc, b, idx) { return acc += idx + b; }, 54);
assert.strictEqual(something([12, 4, 10, 6]), 92);
});
Expand All @@ -43,7 +43,7 @@ describe('reduceRightIndexed', function() {
}, 0, list);
});

it('is automatically curried', function() {
it('is curried', function() {
var addOrConcat = R.reduceRightIndexed(R.add);
var sum = addOrConcat(0);
var cat = addOrConcat('');
Expand Down
2 changes: 1 addition & 1 deletion test/reject.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ describe('reject', function() {
assert.strictEqual(R.reject(R.F, m), m);
});

it('is automatically curried', function() {
it('is curried', function() {
var odd = R.reject(even);
assert.deepEqual(odd([1, 2, 3, 4, 5, 6, 7]), [1, 3, 5, 7]);
});
Expand Down
2 changes: 1 addition & 1 deletion test/rejectIndexed.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('rejectIndexed', function() {
assert.deepEqual(R.rejectIndexed(function(x) { return x > 100; }, []), []);
});

it('is automatically curried', function() {
it('is curried', function() {
var everyOtherPosition = R.rejectIndexed(everyOther);
assert.deepEqual(everyOtherPosition([8, 6, 7, 5, 3, 0, 9]), [6, 5, 0]);
});
Expand Down
2 changes: 1 addition & 1 deletion test/repeat.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('repeat', function() {
assert.deepEqual(R.repeat(null, 3), [null, null, null]);
});

it('is automatically curried', function() {
it('is curried', function() {
var makeFoos = R.repeat('foo');
assert.deepEqual(makeFoos(0), []);
assert.deepEqual(makeFoos(3), ['foo', 'foo', 'foo']);
Expand Down
Loading

0 comments on commit 2d812ad

Please sign in to comment.