From 6ef8693bf07ef84a0c4ee3bed888dc768b9c3e9d Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Thu, 17 Mar 2016 21:09:31 -0700 Subject: [PATCH] Update case examples. --- lodash.js | 18 +++++++++--------- test/test.js | 6 +++--- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/lodash.js b/lodash.js index 53a4ba939..928dff9f5 100644 --- a/lodash.js +++ b/lodash.js @@ -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' diff --git a/test/test.js b/test/test.js index 2a861d72e..242007793 100644 --- a/test/test.js +++ b/test/test.js @@ -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'); });