Update case examples.

This commit is contained in:
John-David Dalton
2016-03-17 21:09:31 -07:00
parent 8c5025f935
commit 6ef8693bf0
2 changed files with 12 additions and 12 deletions

View File

@@ -12719,10 +12719,10 @@
* _.camelCase('Foo Bar');
* // => 'fooBar'
*
* _.camelCase('--foo-bar');
* _.camelCase('--foo-bar--');
* // => 'fooBar'
*
* _.camelCase('__foo_bar__');
* _.camelCase('__FOO_BAR__');
* // => 'fooBar'
*/
var camelCase = createCompounder(function(result, word, index) {
@@ -12883,7 +12883,7 @@
* _.kebabCase('fooBar');
* // => 'foo-bar'
*
* _.kebabCase('__foo_bar__');
* _.kebabCase('__FOO_BAR__');
* // => 'foo-bar'
*/
var kebabCase = createCompounder(function(result, word, index) {
@@ -12901,7 +12901,7 @@
* @returns {string} Returns the lower cased string.
* @example
*
* _.lowerCase('--Foo-Bar');
* _.lowerCase('--Foo-Bar--');
* // => 'foo bar'
*
* _.lowerCase('fooBar');
@@ -13149,7 +13149,7 @@
* _.snakeCase('fooBar');
* // => 'foo_bar'
*
* _.snakeCase('--foo-bar');
* _.snakeCase('--FOO-BAR--');
* // => 'foo_bar'
*/
var snakeCase = createCompounder(function(result, word, index) {
@@ -13446,8 +13446,8 @@
* @returns {string} Returns the lower cased string.
* @example
*
* _.toLower('--Foo-Bar');
* // => '--foo-bar'
* _.toLower('--Foo-Bar--');
* // => '--foo-bar--'
*
* _.toLower('fooBar');
* // => 'foobar'
@@ -13471,8 +13471,8 @@
* @returns {string} Returns the upper cased string.
* @example
*
* _.toUpper('--foo-bar');
* // => '--FOO-BAR'
* _.toUpper('--foo-bar--');
* // => '--FOO-BAR--'
*
* _.toUpper('fooBar');
* // => 'FOOBAR'

View File

@@ -12672,7 +12672,7 @@
QUnit.test('should lowercase as space-separated words', function(assert) {
assert.expect(3);
assert.strictEqual(_.lowerCase('--Foo-Bar'), 'foo bar');
assert.strictEqual(_.lowerCase('--Foo-Bar--'), 'foo bar');
assert.strictEqual(_.lowerCase('fooBar'), 'foo bar');
assert.strictEqual(_.lowerCase('__FOO_BAR__'), 'foo bar');
});
@@ -21869,7 +21869,7 @@
QUnit.test('should convert whole string to lower case', function(assert) {
assert.expect(3);
assert.deepEqual(_.toLower('--Foo-Bar'), '--foo-bar');
assert.deepEqual(_.toLower('--Foo-Bar--'), '--foo-bar--');
assert.deepEqual(_.toLower('fooBar'), 'foobar');
assert.deepEqual(_.toLower('__FOO_BAR__'), '__foo_bar__');
});
@@ -23594,7 +23594,7 @@
QUnit.test('should uppercase as space-separated words', function(assert) {
assert.expect(3);
assert.strictEqual(_.upperCase('--foo-bar'), 'FOO BAR');
assert.strictEqual(_.upperCase('--foo-bar--'), 'FOO BAR');
assert.strictEqual(_.upperCase('fooBar'), 'FOO BAR');
assert.strictEqual(_.upperCase('__foo_bar__'), 'FOO BAR');
});