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

View File

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