diff --git a/snippet_data/snippets.json b/snippet_data/snippets.json index 01e4c6ad2..7d5e06bce 100644 --- a/snippet_data/snippets.json +++ b/snippet_data/snippets.json @@ -5068,7 +5068,7 @@ "type": "snippet", "attributes": { "fileName": "sampleSize.md", - "text": "Gets `n` random elements at unique keys from `array` up to the size of `array`.\n\nShuffle the array using the [Fisher-Yates algorithm](https://github.com/chalarangelo/30-seconds-of-code#shuffle).\nUse `Array.slice()` to get the first `n` elements.\nOmit the second argument, `n` to get only one element at random from the array.", + "text": "Gets `n` random elements at unique keys from `array` up to the size of `array`.\n\nShuffle the array using the [Fisher-Yates algorithm](https://github.com/30-seconds/30-seconds-of-code#shuffle).\nUse `Array.slice()` to get the first `n` elements.\nOmit the second argument, `n` to get only one element at random from the array.", "codeBlocks": [ "const sampleSize = ([...arr], n = 1) => {\n let m = arr.length;\n while (m) {\n const i = Math.floor(Math.random() * m--);\n [arr[m], arr[i]] = [arr[i], arr[m]];\n }\n return arr.slice(0, n);\n};", "sampleSize([1, 2, 3], 2); // [3,1]\nsampleSize([1, 2, 3], 4); // [2,3,1]" @@ -5081,7 +5081,7 @@ }, "meta": { "archived": false, - "hash": "80c6cab3caeedd2dd971a1a5999999c1f181c643d0aa68c3202aa55ad9a574fb" + "hash": "b05cc00e600b631b56453969afe18d84e0ee7e27c523f22e00c7c81f5e9b6e84" } }, { @@ -5212,7 +5212,7 @@ "type": "snippet", "attributes": { "fileName": "shuffle.md", - "text": "Randomizes the order of the values of an array, returning a new array.\n\nUses the [Fisher-Yates algorithm](https://github.com/chalarangelo/30-seconds-of-code#shuffle) to reorder the elements of the array.", + "text": "Randomizes the order of the values of an array, returning a new array.\n\nUses the [Fisher-Yates algorithm](https://github.com/30-seconds/30-seconds-of-code#shuffle) to reorder the elements of the array.", "codeBlocks": [ "const shuffle = ([...arr]) => {\n let m = arr.length;\n while (m) {\n const i = Math.floor(Math.random() * m--);\n [arr[m], arr[i]] = [arr[i], arr[m]];\n }\n return arr;\n};", "const foo = [1, 2, 3];\nshuffle(foo); // [2,3,1], foo = [1,2,3]" @@ -5225,7 +5225,7 @@ }, "meta": { "archived": false, - "hash": "df6c93b6e25c87f12c6ee57a8c4d1b877119bdc422588b4cb2db230b91be3ca2" + "hash": "0edbf4eb8433058722c7b8ff2aef2a088be5d9e9688fd997617355141a418161" } }, { diff --git a/snippet_data/snippetsArchive.json b/snippet_data/snippetsArchive.json index 35a6b9c89..c2eb4da9e 100644 --- a/snippet_data/snippetsArchive.json +++ b/snippet_data/snippetsArchive.json @@ -238,6 +238,23 @@ "hash": "3cc34a842404de0aea2752a6b1398b8a0825cb1a359ff36ab5275f7d15eff107" } }, + { + "id": "pipeLog", + "type": "snippet", + "attributes": { + "fileName": "pipeLog.md", + "text": "Logs a value and returns it.\n\nUse `console.log` to log the supplied value, combined with the `||` operator to return it.", + "codeBlocks": [ + "const pipeLog = data => console.log(data) || data;", + "pipeLog(1); // logs `1` and returns `1`" + ], + "tags": [] + }, + "meta": { + "archived": true, + "hash": "da9808c8ba24ab48b5407ccf48053281bf12627cbe6e24c1b820bfb1216384cb" + } + }, { "id": "quickSort", "type": "snippet", diff --git a/test/pipeLog/pipeLog.js b/test/pipeLog/pipeLog.js new file mode 100644 index 000000000..24a764e4d --- /dev/null +++ b/test/pipeLog/pipeLog.js @@ -0,0 +1,2 @@ +const pipeLog = data => console.log(data) || data; +module.exports = pipeLog; diff --git a/test/pipeLog/pipeLog.test.js b/test/pipeLog/pipeLog.test.js new file mode 100644 index 000000000..0c3804936 --- /dev/null +++ b/test/pipeLog/pipeLog.test.js @@ -0,0 +1,6 @@ +const expect = require('expect'); +const pipeLog = require('./pipeLog.js'); + +test('pipeLog is a Function', () => { + expect(pipeLog).toBeInstanceOf(Function); +}); diff --git a/test/testlog b/test/testlog index ba48fa974..a7b8a496b 100644 --- a/test/testlog +++ b/test/testlog @@ -1,686 +1,686 @@ # Starting... -# 347 test suites found. - -# PASS test/toKebabCase/toKebabCase.test.js - -ok 1 — toKebabCase is a Function -ok 2 — toKebabCase('camelCase') returns camel-case -ok 3 — toKebabCase('some text') returns some-text -ok 4 — toKebabCase('some-mixed-string With spaces-underscores-and-hyphens') returns some-mixed-string-with-spaces-underscores-and-hyphens -ok 5 — toKebabCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML') returns i-am-listening-to-fm-while-loading-different-url-on-my-browser-and-also-editing-some-xml-and-html -ok 6 — toKebabCase() returns undefined -ok 7 — toKebabCase([]) throws an erro -ok 8 — toKebabCase({}) throws an erro -ok 9 — toKebabCase(123) throws an erro -ok 10 — toKebabCase(IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML) takes less than 2s to run - -# PASS test/is/is.test.js - -ok 11 — is is a Function -ok 12 — Works for arrays with data -ok 13 — Works for empty arrays -ok 14 — Works for arrays, not objects -ok 15 — Works for objects -ok 16 — Works for maps -ok 17 — Works for regular expressions -ok 18 — Works for sets -ok 19 — Works for weak maps -ok 20 — Works for weak sets -ok 21 — Works for strings - returns true for primitive -ok 22 — Works for strings - returns true when using constructor -ok 23 — Works for numbers - returns true for primitive -ok 24 — Works for numbers - returns true when using constructor -ok 25 — Works for booleans - returns true for primitive -ok 26 — Works for booleans - returns true when using constructor -ok 27 — Works for functions - -# PASS test/uniqueElements/uniqueElements.test.js - -ok 28 — uniqueElements is a Function -ok 29 — uniqueElements([1, 2, 2, 3, 4, 4, 5]) returns [1,2,3,4,5] -ok 30 — uniqueElements([1, 23, 53]) returns [1, 23, 53] -ok 31 — uniqueElements([true, 0, 1, false, false, undefined, null, '']) returns [true, 0, 1, false, false, undefined, null, ''] -ok 32 — uniqueElements() returns [] -ok 33 — uniqueElements(null) returns [] -ok 34 — uniqueElements(undefined) returns [] -ok 35 — uniqueElements('strt') returns ['s', 't', 'r'] -ok 36 — uniqueElements(1, 1, 2543, 534, 5) throws an error -ok 37 — uniqueElements({}) throws an error -ok 38 — uniqueElements(true) throws an error -ok 39 — uniqueElements(false) throws an error -ok 40 — uniqueElements([true, 0, 1, false, false, undefined, null]) takes less than 2s to run - -# PASS test/zipObject/zipObject.test.js - -ok 41 — zipObject is a Function -ok 42 — zipObject([a, b, c], [1, 2]) returns {a: 1, b: 2, c: undefined} -ok 43 — zipObject([a, b], [1, 2, 3]) returns {a: 1, b: 2} -ok 44 — zipObject([a, b, c], string) returns { a: s, b: t, c: r } -ok 45 — zipObject([a], string) returns { a: s } -ok 46 — zipObject() throws an error -ok 47 — zipObject((['string'], null) throws an error -ok 48 — zipObject(null, [1]) throws an error -ok 49 — zipObject('string') throws an error -ok 50 — zipObject('test', 'string') throws an error - -# PASS test/isPrimitive/isPrimitive.test.js - -ok 51 — isPrimitive is a Function -ok 52 — isPrimitive(null) is primitive -ok 53 — isPrimitive(undefined) is primitive -ok 54 — isPrimitive(string) is primitive -ok 55 — isPrimitive(true) is primitive -ok 56 — isPrimitive(50) is primitive -ok 57 — isPrimitive('Hello') is primitive -ok 58 — isPrimitive(false) is primitive -ok 59 — isPrimitive(Symbol()) is primitive -ok 60 — isPrimitive([1, 2, 3]) is not primitive -ok 61 — isPrimitive({ a: 123 }) is not primitive -ok 62 — isPrimitive({ a: 123 }) takes less than 2s to run - -# PASS test/yesNo/yesNo.test.js - -ok 63 — yesNo is a Function -ok 64 — yesNo(Y) returns true -ok 65 — yesNo(yes) returns true -ok 66 — yesNo(foo, true) returns true -ok 67 — yesNo(No) returns false -ok 68 — yesNo() returns false -ok 69 — yesNo(null) returns false -ok 70 — yesNo(undefined) returns false -ok 71 — yesNo([123, null]) returns false -ok 72 — yesNo([Yes, No]) returns false -ok 73 — yesNo({ 2: Yes }) returns false -ok 74 — yesNo([Yes, No], true) returns true -ok 75 — yesNo({ 2: Yes }, true) returns true - -# PASS test/round/round.test.js - -ok 76 — round is a Function -ok 77 — round(1.005, 2) returns 1.01 -ok 78 — round(123.3423345345345345344, 11) returns 123.34233453453 -ok 79 — round(3.342, 11) returns 3.342 -ok 80 — round(1.005) returns 1 -ok 81 — round([1.005, 2]) returns NaN -ok 82 — round(string) returns NaN -ok 83 — round() returns NaN -ok 84 — round(132, 413, 4134) returns NaN -ok 85 — round({a: 132}, 413) returns NaN -ok 86 — round(123.3423345345345345344, 11) takes less than 2s to run - -# PASS test/toSnakeCase/toSnakeCase.test.js - -ok 87 — toSnakeCase is a Function -ok 88 — toSnakeCase('camelCase') returns camel_case -ok 89 — toSnakeCase('some text') returns some_text -ok 90 — toSnakeCase('some-mixed_string With spaces_underscores-and-hyphens') returns some_mixed_string_with_spaces_underscores_and_hyphens -ok 91 — toSnakeCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML') returns i_am_listening_to_fm_while_loading_different_url_on_my_browser_and_also_editing_some_xml_and_html -ok 92 — toSnakeCase() returns undefined -ok 93 — toSnakeCase([]) throws an error -ok 94 — toSnakeCase({}) throws an error -ok 95 — toSnakeCase(123) throws an error -ok 96 — toSnakeCase(IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML) takes less than 2s to run - -# PASS test/quickSort/quickSort.test.js - -ok 97 — quickSort is a Function -ok 98 — quickSort([5, 6, 4, 3, 1, 2]) returns [1, 2, 3, 4, 5, 6] -ok 99 — quickSort([-1, 0, -2]) returns [-2, -1, 0] -ok 100 — quickSort() throws an error -ok 101 — quickSort(123) throws an error -ok 102 — quickSort({ 234: string}) throws an error -ok 103 — quickSort(null) throws an error -ok 104 — quickSort(undefined) throws an error -ok 105 — quickSort([11, 1, 324, 23232, -1, 53, 2, 524, 32, 13, 156, 133, 62, 12, 4]) takes less than 2s to run - -# PASS test/without/without.test.js - -ok 106 — without is a Function -ok 107 — without([2, 1, 2, 3], 1, 2) returns [3] -ok 108 — without([]) returns [] -ok 109 — without([3, 1, true, '3', true], '3', true) returns [3, 1] -ok 110 — without('string'.split(''), 's', 't', 'g') returns ['r', 'i', 'n'] -ok 111 — without() throws an error -ok 112 — without(null) throws an error -ok 113 — without(undefined) throws an error -ok 114 — without(123) throws an error -ok 115 — without({}) throws an error - -# PASS test/union/union.test.js - -ok 116 — union is a Function -ok 117 — union([1, 2, 3], [4, 3, 2]) returns [1, 2, 3, 4] -ok 118 — union('str', 'asd') returns [ 's', 't', 'r', 'a', 'd' ] -ok 119 — union([[], {}], [1, 2, 3]) returns [[], {}, 1, 2, 3] -ok 120 — union([], []) returns [] -ok 121 — union() throws an error -ok 122 — union(true, 'str') throws an error -ok 123 — union('false', true) throws an error -ok 124 — union((123, {}) throws an error -ok 125 — union([], {}) throws an error -ok 126 — union(undefined, null) throws an error -ok 127 — union([1, 2, 3], [4, 3, 2]) takes less than 2s to run - -# PASS test/isSorted/isSorted.test.js - -ok 128 — isSorted is a Function -ok 129 — Array is sorted in ascending order -ok 130 — Array is sorted in ascending order -ok 131 — Array is sorted in ascending order -ok 132 — Array is sorted in ascending order -ok 133 — Array is sorted in descending order -ok 134 — Array is sorted in descending order -ok 135 — Array is sorted in descending order -ok 136 — Array is sorted in descending order -ok 137 — Array is empty -ok 138 — Array is not sorted, direction changed in array -ok 139 — Array is not sorted, direction changed in array - -# PASS test/validateNumber/validateNumber.test.js - -ok 140 — validateNumber is a Function -ok 141 — validateNumber(9) returns true -ok 142 — validateNumber(234asd.slice(0, 2)) returns true -ok 143 — validateNumber(1232) returns true -ok 144 — validateNumber(1232 + 13423) returns true -ok 145 — validateNumber(1232 * 2342 * 123) returns true -ok 146 — validateNumber(1232.23423536) returns true -ok 147 — validateNumber(234asd) returns false -ok 148 — validateNumber(e234d) returns false -ok 149 — validateNumber(false) returns false -ok 150 — validateNumber(true) returns false -ok 151 — validateNumber(null) returns false -ok 152 — validateNumber(123 * asd) returns false - -# PASS test/toCamelCase/toCamelCase.test.js - -ok 153 — toCamelCase is a Function -ok 154 — toCamelCase('some_database_field_name') returns someDatabaseFieldName -ok 155 — toCamelCase('Some label that needs to be camelized') returns someLabelThatNeedsToBeCamelized -ok 156 — toCamelCase('some-javascript-property') return someJavascriptProperty -ok 157 — toCamelCase('some-mixed_string with spaces_underscores-and-hyphens') returns someMixedStringWithSpacesUnderscoresAndHyphens -ok 158 — toCamelCase() throws a error -ok 159 — toCamelCase([]) throws a error -ok 160 — toCamelCase({}) throws a error -ok 161 — toCamelCase(123) throws a error -ok 162 — toCamelCase(some-mixed_string with spaces_underscores-and-hyphens) takes less than 2s to run - -# PASS test/zip/zip.test.js - -ok 163 — zip is a Function -ok 164 — zip([a, b], [1, 2], [true, false]) returns [[a, 1, true], [b, 2, false]] -ok 165 — zip([a], [1, 2], [true, false]) returns [[a, 1, true], [undefined, 2, false]] -ok 166 — zip([]) returns [] -ok 167 — zip(123) returns [] -ok 168 — zip([a, b], [1, 2], [true, false]) returns an Array -ok 169 — zip([a], [1, 2], [true, false]) returns an Array -ok 170 — zip(null) throws an error -ok 171 — zip(undefined) throws an error - -# PASS test/longestItem/longestItem.test.js - -ok 172 — longestItem is a Function -ok 173 — Returns the longest object from plain values -ok 174 — Returns the longest object from a spread array -ok 175 — Returns the longest object from mixed input -ok 176 — Returns the longest array -ok 177 — Returns the longest object when comparing arrays and strings -ok 178 — Returns undefined without any input -ok 179 — Returns first found of all similar -ok 180 — Throws TypeError if all inputs are undefined - -# PASS test/toSafeInteger/toSafeInteger.test.js - -ok 181 — toSafeInteger is a Function -ok 182 — Number(toSafeInteger(3.2)) is a number -ok 183 — Converts a value to a safe integer -ok 184 — toSafeInteger('4.2') returns 4 -ok 185 — toSafeInteger(4.6) returns 5 -ok 186 — toSafeInteger([]) returns 0 -ok 187 — isNaN(toSafeInteger([1.5, 3124])) is true -ok 188 — isNaN(toSafeInteger('string')) is true -ok 189 — isNaN(toSafeInteger({})) is true -ok 190 — isNaN(toSafeInteger()) is true -ok 191 — toSafeInteger(Infinity) returns 9007199254740991 -ok 192 — toSafeInteger(3.2) takes less than 2s to run - -# PASS test/isEmpty/isEmpty.test.js - -ok 193 — isEmpty is a Function -ok 194 — Returns true for empty Map -ok 195 — Returns true for empty Set -ok 196 — Returns true for empty array -ok 197 — Returns true for empty object -ok 198 — Returns true for empty string -ok 199 — Returns false for non-empty array -ok 200 — Returns false for non-empty object -ok 201 — Returns false for non-empty string -ok 202 — Returns true - type is not considered a collection -ok 203 — Returns true - type is not considered a collection - -# PASS test/uniqueElementsByRight/uniqueElementsByRight.test.js - -ok 204 — uniqueElementsByRight is a Function -ok 205 — uniqueElementsByRight works for properties -ok 206 — uniqueElementsByRight works for nested properties - -# PASS test/average/average.test.js - -ok 207 — average is a Function -ok 208 — average(true) returns 0 -ok 209 — average(false) returns 1 -ok 210 — average(9, 1) returns 5 -ok 211 — average(153, 44, 55, 64, 71, 1122, 322774, 2232, 23423, 234, 3631) returns 32163.909090909092 -ok 212 — average(1, 2, 3) returns 2 -ok 213 — average(null) returns 0 -ok 214 — average(1, 2, 3) returns NaN -ok 215 — average(String) returns NaN -ok 216 — average({ a: 123}) returns NaN -ok 217 — average([undefined, 0, string]) returns NaN -ok 218 — average([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run +# 348 test suites found. # PASS test/chunk/chunk.test.js -ok 219 — chunk is a Function -ok 220 — chunk([1, 2, 3, 4, 5], 2) returns [[1,2],[3,4],[5]] -ok 221 — chunk([]) returns [] -ok 222 — chunk(123) returns [] -ok 223 — chunk({ a: 123}) returns [] -ok 224 — chunk(string, 2) returns [ st, ri, ng ] -ok 225 — chunk() throws an error -ok 226 — chunk(undefined) throws an error -ok 227 — chunk(null) throws an error -ok 228 — chunk(This is a string, 2) takes less than 2s to run +ok 1 — chunk is a Function +ok 2 — chunk([1, 2, 3, 4, 5], 2) returns [[1,2],[3,4],[5]] +ok 3 — chunk([]) returns [] +ok 4 — chunk(123) returns [] +ok 5 — chunk({ a: 123}) returns [] +ok 6 — chunk(string, 2) returns [ st, ri, ng ] +ok 7 — chunk() throws an error +ok 8 — chunk(undefined) throws an error +ok 9 — chunk(null) throws an error +ok 10 — chunk(This is a string, 2) takes less than 2s to run -# PASS test/head/head.test.js +# PASS test/toKebabCase/toKebabCase.test.js -ok 229 — head is a Function -ok 230 — head({ a: 1234}) returns undefined -ok 231 — head([1, 2, 3]) returns 1 -ok 232 — head({ 0: false}) returns false -ok 233 — head(String) returns S -ok 234 — head(null) throws an Error -ok 235 — head(undefined) throws an Error -ok 236 — head() throws an Error -ok 237 — head([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run +ok 11 — toKebabCase is a Function +ok 12 — toKebabCase('camelCase') returns camel-case +ok 13 — toKebabCase('some text') returns some-text +ok 14 — toKebabCase('some-mixed-string With spaces-underscores-and-hyphens') returns some-mixed-string-with-spaces-underscores-and-hyphens +ok 15 — toKebabCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML') returns i-am-listening-to-fm-while-loading-different-url-on-my-browser-and-also-editing-some-xml-and-html +ok 16 — toKebabCase() returns undefined +ok 17 — toKebabCase([]) throws an erro +ok 18 — toKebabCase({}) throws an erro +ok 19 — toKebabCase(123) throws an erro +ok 20 — toKebabCase(IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML) takes less than 2s to run + +# PASS test/toCamelCase/toCamelCase.test.js + +ok 21 — toCamelCase is a Function +ok 22 — toCamelCase('some_database_field_name') returns someDatabaseFieldName +ok 23 — toCamelCase('Some label that needs to be camelized') returns someLabelThatNeedsToBeCamelized +ok 24 — toCamelCase('some-javascript-property') return someJavascriptProperty +ok 25 — toCamelCase('some-mixed_string with spaces_underscores-and-hyphens') returns someMixedStringWithSpacesUnderscoresAndHyphens +ok 26 — toCamelCase() throws a error +ok 27 — toCamelCase([]) throws a error +ok 28 — toCamelCase({}) throws a error +ok 29 — toCamelCase(123) throws a error +ok 30 — toCamelCase(some-mixed_string with spaces_underscores-and-hyphens) takes less than 2s to run + +# PASS test/quickSort/quickSort.test.js + +ok 31 — quickSort is a Function +ok 32 — quickSort([5, 6, 4, 3, 1, 2]) returns [1, 2, 3, 4, 5, 6] +ok 33 — quickSort([-1, 0, -2]) returns [-2, -1, 0] +ok 34 — quickSort() throws an error +ok 35 — quickSort(123) throws an error +ok 36 — quickSort({ 234: string}) throws an error +ok 37 — quickSort(null) throws an error +ok 38 — quickSort(undefined) throws an error +ok 39 — quickSort([11, 1, 324, 23232, -1, 53, 2, 524, 32, 13, 156, 133, 62, 12, 4]) takes less than 2s to run + +# PASS test/isSorted/isSorted.test.js + +ok 40 — isSorted is a Function +ok 41 — Array is sorted in ascending order +ok 42 — Array is sorted in ascending order +ok 43 — Array is sorted in ascending order +ok 44 — Array is sorted in ascending order +ok 45 — Array is sorted in descending order +ok 46 — Array is sorted in descending order +ok 47 — Array is sorted in descending order +ok 48 — Array is sorted in descending order +ok 49 — Array is empty +ok 50 — Array is not sorted, direction changed in array +ok 51 — Array is not sorted, direction changed in array + +# PASS test/validateNumber/validateNumber.test.js + +ok 52 — validateNumber is a Function +ok 53 — validateNumber(9) returns true +ok 54 — validateNumber(234asd.slice(0, 2)) returns true +ok 55 — validateNumber(1232) returns true +ok 56 — validateNumber(1232 + 13423) returns true +ok 57 — validateNumber(1232 * 2342 * 123) returns true +ok 58 — validateNumber(1232.23423536) returns true +ok 59 — validateNumber(234asd) returns false +ok 60 — validateNumber(e234d) returns false +ok 61 — validateNumber(false) returns false +ok 62 — validateNumber(true) returns false +ok 63 — validateNumber(null) returns false +ok 64 — validateNumber(123 * asd) returns false + +# PASS test/toSnakeCase/toSnakeCase.test.js + +ok 65 — toSnakeCase is a Function +ok 66 — toSnakeCase('camelCase') returns camel_case +ok 67 — toSnakeCase('some text') returns some_text +ok 68 — toSnakeCase('some-mixed_string With spaces_underscores-and-hyphens') returns some_mixed_string_with_spaces_underscores_and_hyphens +ok 69 — toSnakeCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML') returns i_am_listening_to_fm_while_loading_different_url_on_my_browser_and_also_editing_some_xml_and_html +ok 70 — toSnakeCase() returns undefined +ok 71 — toSnakeCase([]) throws an error +ok 72 — toSnakeCase({}) throws an error +ok 73 — toSnakeCase(123) throws an error +ok 74 — toSnakeCase(IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML) takes less than 2s to run + +# PASS test/uniqueElements/uniqueElements.test.js + +ok 75 — uniqueElements is a Function +ok 76 — uniqueElements([1, 2, 2, 3, 4, 4, 5]) returns [1,2,3,4,5] +ok 77 — uniqueElements([1, 23, 53]) returns [1, 23, 53] +ok 78 — uniqueElements([true, 0, 1, false, false, undefined, null, '']) returns [true, 0, 1, false, false, undefined, null, ''] +ok 79 — uniqueElements() returns [] +ok 80 — uniqueElements(null) returns [] +ok 81 — uniqueElements(undefined) returns [] +ok 82 — uniqueElements('strt') returns ['s', 't', 'r'] +ok 83 — uniqueElements(1, 1, 2543, 534, 5) throws an error +ok 84 — uniqueElements({}) throws an error +ok 85 — uniqueElements(true) throws an error +ok 86 — uniqueElements(false) throws an error +ok 87 — uniqueElements([true, 0, 1, false, false, undefined, null]) takes less than 2s to run + +# PASS test/union/union.test.js + +ok 88 — union is a Function +ok 89 — union([1, 2, 3], [4, 3, 2]) returns [1, 2, 3, 4] +ok 90 — union('str', 'asd') returns [ 's', 't', 'r', 'a', 'd' ] +ok 91 — union([[], {}], [1, 2, 3]) returns [[], {}, 1, 2, 3] +ok 92 — union([], []) returns [] +ok 93 — union() throws an error +ok 94 — union(true, 'str') throws an error +ok 95 — union('false', true) throws an error +ok 96 — union((123, {}) throws an error +ok 97 — union([], {}) throws an error +ok 98 — union(undefined, null) throws an error +ok 99 — union([1, 2, 3], [4, 3, 2]) takes less than 2s to run + +# PASS test/is/is.test.js + +ok 100 — is is a Function +ok 101 — Works for arrays with data +ok 102 — Works for empty arrays +ok 103 — Works for arrays, not objects +ok 104 — Works for objects +ok 105 — Works for maps +ok 106 — Works for regular expressions +ok 107 — Works for sets +ok 108 — Works for weak maps +ok 109 — Works for weak sets +ok 110 — Works for strings - returns true for primitive +ok 111 — Works for strings - returns true when using constructor +ok 112 — Works for numbers - returns true for primitive +ok 113 — Works for numbers - returns true when using constructor +ok 114 — Works for booleans - returns true for primitive +ok 115 — Works for booleans - returns true when using constructor +ok 116 — Works for functions # PASS test/words/words.test.js -ok 238 — words is a Function -ok 239 — words('I love javaScript!!') returns [I, love, javaScript] -ok 240 — words('python, javaScript & coffee') returns [python, javaScript, coffee] -ok 241 — words(I love javaScript!!) returns an array -ok 242 — words() throws an error -ok 243 — words(null) throws an error -ok 244 — words(undefined) throws an error -ok 245 — words({}) throws an error -ok 246 — words([]) throws an error -ok 247 — words(1234) throws an error +ok 117 — words is a Function +ok 118 — words('I love javaScript!!') returns [I, love, javaScript] +ok 119 — words('python, javaScript & coffee') returns [python, javaScript, coffee] +ok 120 — words(I love javaScript!!) returns an array +ok 121 — words() throws an error +ok 122 — words(null) throws an error +ok 123 — words(undefined) throws an error +ok 124 — words({}) throws an error +ok 125 — words([]) throws an error +ok 126 — words(1234) throws an error -# PASS test/uniqueElementsBy/uniqueElementsBy.test.js +# PASS test/longestItem/longestItem.test.js -ok 248 — uniqueElementsBy is a Function -ok 249 — uniqueElementsBy works for properties -ok 250 — uniqueElementsBy works for nested properties +ok 127 — longestItem is a Function +ok 128 — Returns the longest object from plain values +ok 129 — Returns the longest object from a spread array +ok 130 — Returns the longest object from mixed input +ok 131 — Returns the longest array +ok 132 — Returns the longest object when comparing arrays and strings +ok 133 — Returns undefined without any input +ok 134 — Returns first found of all similar +ok 135 — Throws TypeError if all inputs are undefined -# PASS test/pluralize/pluralize.test.js +# PASS test/average/average.test.js -ok 251 — pluralize is a Function -ok 252 — Produces the plural of the word -ok 253 — Produces the singular of the word -ok 254 — Produces the plural of the word -ok 255 — Prodices the defined plural of the word -ok 256 — Works with a dictionary - -# PASS test/CSVToArray/CSVToArray.test.js - -ok 257 — CSVToArray is a Function -ok 258 — CSVToArray works with default delimiter -ok 259 — CSVToArray works with custom delimiter -ok 260 — CSVToArray omits the first row -ok 261 — CSVToArray omits the first row and works with a custom delimiter - -# PASS test/sampleSize/sampleSize.test.js - -ok 262 — sampleSize is a Function -ok 263 — Returns a single element without n specified -ok 264 — Returns a random sample of specified size from an array -ok 265 — Returns all elements in an array if n >= length -ok 266 — Returns an empty array if original array is empty -ok 267 — Returns an empty array if n = 0 +ok 136 — average is a Function +ok 137 — average(true) returns 0 +ok 138 — average(false) returns 1 +ok 139 — average(9, 1) returns 5 +ok 140 — average(153, 44, 55, 64, 71, 1122, 322774, 2232, 23423, 234, 3631) returns 32163.909090909092 +ok 141 — average(1, 2, 3) returns 2 +ok 142 — average(null) returns 0 +ok 143 — average(1, 2, 3) returns NaN +ok 144 — average(String) returns NaN +ok 145 — average({ a: 123}) returns NaN +ok 146 — average([undefined, 0, string]) returns NaN +ok 147 — average([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run # PASS test/last/last.test.js -ok 268 — last is a Function -ok 269 — last({ a: 1234}) returns undefined -ok 270 — last([1, 2, 3]) returns 3 -ok 271 — last({ 0: false}) returns undefined -ok 272 — last(String) returns g -ok 273 — last(null) throws an Error -ok 274 — last(undefined) throws an Error -ok 275 — last() throws an Error -ok 276 — last([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run +ok 148 — last is a Function +ok 149 — last({ a: 1234}) returns undefined +ok 150 — last([1, 2, 3]) returns 3 +ok 151 — last({ 0: false}) returns undefined +ok 152 — last(String) returns g +ok 153 — last(null) throws an Error +ok 154 — last(undefined) throws an Error +ok 155 — last() throws an Error +ok 156 — last([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run -# PASS test/orderBy/orderBy.test.js +# PASS test/toSafeInteger/toSafeInteger.test.js -ok 277 — orderBy is a Function -ok 278 — Returns a sorted array of objects ordered by properties and orders. -ok 279 — Returns a sorted array of objects ordered by properties and orders. +ok 157 — toSafeInteger is a Function +ok 158 — Number(toSafeInteger(3.2)) is a number +ok 159 — Converts a value to a safe integer +ok 160 — toSafeInteger('4.2') returns 4 +ok 161 — toSafeInteger(4.6) returns 5 +ok 162 — toSafeInteger([]) returns 0 +ok 163 — isNaN(toSafeInteger([1.5, 3124])) is true +ok 164 — isNaN(toSafeInteger('string')) is true +ok 165 — isNaN(toSafeInteger({})) is true +ok 166 — isNaN(toSafeInteger()) is true +ok 167 — toSafeInteger(Infinity) returns 9007199254740991 +ok 168 — toSafeInteger(3.2) takes less than 2s to run -# PASS test/deepFreeze/deepFreeze.test.js +# PASS test/round/round.test.js -ok 280 — deepFreeze is a Function -ok 281 — modifying deeply freezed object prop throws an error in strict mode -ok 282 — should not modify deeply freezed object inside another object -ok 283 — should not add prop to deeply freezed empty object +ok 169 — round is a Function +ok 170 — round(1.005, 2) returns 1.01 +ok 171 — round(123.3423345345345345344, 11) returns 123.34233453453 +ok 172 — round(3.342, 11) returns 3.342 +ok 173 — round(1.005) returns 1 +ok 174 — round([1.005, 2]) returns NaN +ok 175 — round(string) returns NaN +ok 176 — round() returns NaN +ok 177 — round(132, 413, 4134) returns NaN +ok 178 — round({a: 132}, 413) returns NaN +ok 179 — round(123.3423345345345345344, 11) takes less than 2s to run -# PASS test/equals/equals.test.js +# PASS test/zip/zip.test.js -ok 284 — equals is a Function -ok 285 — { a: [2, {e: 3}], b: [4], c: 'foo' } is equal to { a: [2, {e: 3}], b: [4], c: 'foo' } -ok 286 — [1,2,3] is equal to [1,2,3] -ok 287 — { a: [2, 3], b: [4] } is not equal to { a: [2, 3], b: [6] } -ok 288 — [1,2,3] is not equal to [1,2,4] -ok 289 — [1, 2, 3] should be equal to { 0: 1, 1: 2, 2: 3 }) - type is different, but their enumerable properties match. +ok 180 — zip is a Function +ok 181 — zip([a, b], [1, 2], [true, false]) returns [[a, 1, true], [b, 2, false]] +ok 182 — zip([a], [1, 2], [true, false]) returns [[a, 1, true], [undefined, 2, false]] +ok 183 — zip([]) returns [] +ok 184 — zip(123) returns [] +ok 185 — zip([a, b], [1, 2], [true, false]) returns an Array +ok 186 — zip([a], [1, 2], [true, false]) returns an Array +ok 187 — zip(null) throws an error +ok 188 — zip(undefined) throws an error -# PASS test/allEqual/allEqual.test.js +# PASS test/zipObject/zipObject.test.js -ok 290 — allEqual is a Function -ok 291 — Truthy numbers -ok 292 — Falsy numbers -ok 293 — Truthy strings -ok 294 — Falsy numbers -ok 295 — Truthy trues -ok 296 — Truthy falses -ok 297 — Falsy trues -ok 298 — Falsy falses - -# PASS test/offset/offset.test.js - -ok 299 — offset is a Function -ok 300 — Offset of 0 returns the same array. -ok 301 — Offset > 0 returns the offsetted array. -ok 302 — Offset < 0 returns the reverse offsetted array. -ok 303 — Offset greater than the length of the array returns the same array. -ok 304 — Offset less than the negative length of the array returns the same array. -ok 305 — Offsetting empty array returns an empty array. - -# PASS test/all/all.test.js - -ok 306 — all is a Function -ok 307 — Returns true for arrays with no falsey values -ok 308 — Returns false for arrays with 0 -ok 309 — Returns false for arrays with NaN -ok 310 — Returns false for arrays with undefined -ok 311 — Returns false for arrays with null -ok 312 — Returns false for arrays with empty strings -ok 313 — Returns true with predicate function -ok 314 — Returns false with a predicate function - -# PASS test/randomIntegerInRange/randomIntegerInRange.test.js - -ok 315 — randomIntegerInRange is a Function -ok 316 — The returned value is an integer -ok 317 — The returned value lies between provided lowerLimit and upperLimit (both inclusive). +ok 189 — zipObject is a Function +ok 190 — zipObject([a, b, c], [1, 2]) returns {a: 1, b: 2, c: undefined} +ok 191 — zipObject([a, b], [1, 2, 3]) returns {a: 1, b: 2} +ok 192 — zipObject([a, b, c], string) returns { a: s, b: t, c: r } +ok 193 — zipObject([a], string) returns { a: s } +ok 194 — zipObject() throws an error +ok 195 — zipObject((['string'], null) throws an error +ok 196 — zipObject(null, [1]) throws an error +ok 197 — zipObject('string') throws an error +ok 198 — zipObject('test', 'string') throws an error # PASS test/filterNonUniqueBy/filterNonUniqueBy.test.js -ok 318 — filterNonUniqueBy is a Function -ok 319 — filterNonUniqueBy works for properties -ok 320 — filterNonUniqueBy works for nested properties +ok 199 — filterNonUniqueBy is a Function +ok 200 — filterNonUniqueBy works for properties +ok 201 — filterNonUniqueBy works for nested properties -# PASS test/initializeArrayWithRange/initializeArrayWithRange.test.js +# PASS test/uniqueElementsBy/uniqueElementsBy.test.js -ok 321 — initializeArrayWithRange is a Function -ok 322 — Initializes an array containing the numbers in the specified range (witout start value) -ok 323 — Initializes an array containing the numbers in the specified range -ok 324 — Initializes an array containing the numbers in the specified range (with step) - -# PASS test/randomIntArrayInRange/randomIntArrayInRange.test.js - -ok 325 — randomIntArrayInRange is a Function -ok 326 — The returned array contains only integers -ok 327 — The returned array has the proper length -ok 328 — The returned array's values lie between provided lowerLimit and upperLimit (both inclusive). - -# PASS test/any/any.test.js - -ok 329 — any is a Function -ok 330 — Returns true for arrays with at least one truthy value -ok 331 — Returns false for arrays with no truthy values -ok 332 — Returns false for arrays with no truthy values -ok 333 — Returns true with predicate function -ok 334 — Returns false with a predicate function - -# PASS test/toCurrency/toCurrency.test.js - -ok 335 — toCurrency is a Function -ok 336 — currency: Euro | currencyLangFormat: Local -ok 337 — currency: US Dollar | currencyLangFormat: English (United States) -ok 338 — currency: Japanese Yen | currencyLangFormat: Local - -# PASS test/geometricProgression/geometricProgression.test.js - -ok 339 — geometricProgression is a Function -ok 340 — Initializes an array containing the numbers in the specified range -ok 341 — Initializes an array containing the numbers in the specified range -ok 342 — Initializes an array containing the numbers in the specified range - -# PASS test/randomNumberInRange/randomNumberInRange.test.js - -ok 343 — randomNumberInRange is a Function -ok 344 — The returned value is a number -ok 345 — The returned value lies between provided lowerLimit and upperLimit (both inclusive). - -# PASS test/mapString/mapString.test.js - -ok 346 — mapString is a Function -ok 347 — mapString returns a capitalized string -ok 348 — mapString can deal with indexes -ok 349 — mapString can deal with the full string - -# PASS test/mapObject/mapObject.test.js - -ok 350 — mapObject is a Function -ok 351 — mapObject([1, 2, 3], a => a * a) returns { 1: 1, 2: 4, 3: 9 } -ok 352 — mapObject([1, 2, 3, 4], (a, b) => b - a) returns { 1: -1, 2: -1, 3: -1, 4: -1 } -ok 353 — mapObject([1, 2, 3, 4], (a, b) => a - b) returns { 1: 1, 2: 1, 3: 1, 4: 1 } - -# PASS test/invertKeyValues/invertKeyValues.test.js - -ok 354 — invertKeyValues is a Function -ok 355 — invertKeyValues({ a: 1, b: 2, c: 1 }) returns { 1: [ 'a', 'c' ], 2: [ 'b' ] } -ok 356 — invertKeyValues({ a: 1, b: 2, c: 1 }, value => 'group' + value) returns { group1: [ 'a', 'c' ], group2: [ 'b' ] } +ok 202 — uniqueElementsBy is a Function +ok 203 — uniqueElementsBy works for properties +ok 204 — uniqueElementsBy works for nested properties # PASS test/join/join.test.js -ok 357 — join is a Function -ok 358 — Joins all elements of an array into a string and returns this string -ok 359 — Joins all elements of an array into a string and returns this string -ok 360 — Joins all elements of an array into a string and returns this string +ok 205 — join is a Function +ok 206 — Joins all elements of an array into a string and returns this string +ok 207 — Joins all elements of an array into a string and returns this string +ok 208 — Joins all elements of an array into a string and returns this string -# PASS test/approximatelyEqual/approximatelyEqual.test.js +# PASS test/isEmpty/isEmpty.test.js -ok 361 — approximatelyEqual is a Function -ok 362 — Works for PI / 2 -ok 363 — Works for 0.1 + 0.2 === 0.3 -ok 364 — Works for exactly equal values -ok 365 — Works for a custom epsilon +ok 209 — isEmpty is a Function +ok 210 — Returns true for empty Map +ok 211 — Returns true for empty Set +ok 212 — Returns true for empty array +ok 213 — Returns true for empty object +ok 214 — Returns true for empty string +ok 215 — Returns false for non-empty array +ok 216 — Returns false for non-empty object +ok 217 — Returns false for non-empty string +ok 218 — Returns true - type is not considered a collection +ok 219 — Returns true - type is not considered a collection + +# PASS test/invertKeyValues/invertKeyValues.test.js + +ok 220 — invertKeyValues is a Function +ok 221 — invertKeyValues({ a: 1, b: 2, c: 1 }) returns { 1: [ 'a', 'c' ], 2: [ 'b' ] } +ok 222 — invertKeyValues({ a: 1, b: 2, c: 1 }, value => 'group' + value) returns { group1: [ 'a', 'c' ], group2: [ 'b' ] } + +# PASS test/isPrimitive/isPrimitive.test.js + +ok 223 — isPrimitive is a Function +ok 224 — isPrimitive(null) is primitive +ok 225 — isPrimitive(undefined) is primitive +ok 226 — isPrimitive(string) is primitive +ok 227 — isPrimitive(true) is primitive +ok 228 — isPrimitive(50) is primitive +ok 229 — isPrimitive('Hello') is primitive +ok 230 — isPrimitive(false) is primitive +ok 231 — isPrimitive(Symbol()) is primitive +ok 232 — isPrimitive([1, 2, 3]) is not primitive +ok 233 — isPrimitive({ a: 123 }) is not primitive +ok 234 — isPrimitive({ a: 123 }) takes less than 2s to run + +# PASS test/allEqual/allEqual.test.js + +ok 235 — allEqual is a Function +ok 236 — Truthy numbers +ok 237 — Falsy numbers +ok 238 — Truthy strings +ok 239 — Falsy numbers +ok 240 — Truthy trues +ok 241 — Truthy falses +ok 242 — Falsy trues +ok 243 — Falsy falses + +# PASS test/randomNumberInRange/randomNumberInRange.test.js + +ok 244 — randomNumberInRange is a Function +ok 245 — The returned value is a number +ok 246 — The returned value lies between provided lowerLimit and upperLimit (both inclusive). + +# PASS test/randomIntegerInRange/randomIntegerInRange.test.js + +ok 247 — randomIntegerInRange is a Function +ok 248 — The returned value is an integer +ok 249 — The returned value lies between provided lowerLimit and upperLimit (both inclusive). + +# PASS test/yesNo/yesNo.test.js + +ok 250 — yesNo is a Function +ok 251 — yesNo(Y) returns true +ok 252 — yesNo(yes) returns true +ok 253 — yesNo(foo, true) returns true +ok 254 — yesNo(No) returns false +ok 255 — yesNo() returns false +ok 256 — yesNo(null) returns false +ok 257 — yesNo(undefined) returns false +ok 258 — yesNo([123, null]) returns false +ok 259 — yesNo([Yes, No]) returns false +ok 260 — yesNo({ 2: Yes }) returns false +ok 261 — yesNo([Yes, No], true) returns true +ok 262 — yesNo({ 2: Yes }, true) returns true + +# PASS test/mapString/mapString.test.js + +ok 263 — mapString is a Function +ok 264 — mapString returns a capitalized string +ok 265 — mapString can deal with indexes +ok 266 — mapString can deal with the full string # PASS test/reduceWhich/reduceWhich.test.js -ok 366 — reduceWhich is a Function -ok 367 — Returns the minimum of an array -ok 368 — Returns the maximum of an array -ok 369 — Returns the object with the minimum specified value in an array +ok 267 — reduceWhich is a Function +ok 268 — Returns the minimum of an array +ok 269 — Returns the maximum of an array +ok 270 — Returns the object with the minimum specified value in an array -# PASS test/binomialCoefficient/binomialCoefficient.test.js +# PASS test/deepFreeze/deepFreeze.test.js -ok 370 — binomialCoefficient is a Function -ok 371 — Returns the appropriate value -ok 372 — Returns the appropriate value -ok 373 — Returns the appropriate value -ok 374 — Returns NaN -ok 375 — Returns NaN +ok 271 — deepFreeze is a Function +ok 272 — modifying deeply freezed object prop throws an error in strict mode +ok 273 — should not modify deeply freezed object inside another object +ok 274 — should not add prop to deeply freezed empty object -# PASS test/fromCamelCase/fromCamelCase.test.js +# PASS test/CSVToArray/CSVToArray.test.js -ok 376 — fromCamelCase is a Function -ok 377 — Converts a string from camelcase -ok 378 — Converts a string from camelcase -ok 379 — Converts a string from camelcase +ok 275 — CSVToArray is a Function +ok 276 — CSVToArray works with default delimiter +ok 277 — CSVToArray works with custom delimiter +ok 278 — CSVToArray omits the first row +ok 279 — CSVToArray omits the first row and works with a custom delimiter -# PASS test/castArray/castArray.test.js +# PASS test/equals/equals.test.js -ok 380 — castArray is a Function -ok 381 — Works for single values -ok 382 — Works for arrays with one value -ok 383 — Works for arrays with multiple value -ok 384 — Works for strings -ok 385 — Works for objects +ok 280 — equals is a Function +ok 281 — { a: [2, {e: 3}], b: [4], c: 'foo' } is equal to { a: [2, {e: 3}], b: [4], c: 'foo' } +ok 282 — [1,2,3] is equal to [1,2,3] +ok 283 — { a: [2, 3], b: [4] } is not equal to { a: [2, 3], b: [6] } +ok 284 — [1,2,3] is not equal to [1,2,4] +ok 285 — [1, 2, 3] should be equal to { 0: 1, 1: 2, 2: 3 }) - type is different, but their enumerable properties match. -# PASS test/none/none.test.js +# PASS test/geometricProgression/geometricProgression.test.js -ok 386 — none is a Function -ok 387 — Returns true for arrays with no truthy values -ok 388 — Returns false for arrays with at least one truthy value -ok 389 — Returns true with a predicate function -ok 390 — Returns false with predicate function +ok 286 — geometricProgression is a Function +ok 287 — Initializes an array containing the numbers in the specified range +ok 288 — Initializes an array containing the numbers in the specified range +ok 289 — Initializes an array containing the numbers in the specified range # PASS test/dig/dig.test.js -ok 391 — dig is a Function -ok 392 — Dig target success -ok 393 — Dig target with falsey value -ok 394 — Dig target with array -ok 395 — Unknown target return undefined +ok 290 — dig is a Function +ok 291 — Dig target success +ok 292 — Dig target with falsey value +ok 293 — Dig target with array +ok 294 — Unknown target return undefined -# PASS test/binarySearch/binarySearch.test.js +# PASS test/any/any.test.js -ok 396 — binarySearch is a Function -ok 397 — Finds item in array -ok 398 — Returns -1 when not found -ok 399 — Works with empty arrays -ok 400 — Works for one element arrays +ok 295 — any is a Function +ok 296 — Returns true for arrays with at least one truthy value +ok 297 — Returns false for arrays with no truthy values +ok 298 — Returns false for arrays with no truthy values +ok 299 — Returns true with predicate function +ok 300 — Returns false with a predicate function -# PASS test/randomHexColorCode/randomHexColorCode.test.js +# PASS test/pluralize/pluralize.test.js -ok 401 — randomHexColorCode is a Function -ok 402 — randomHexColorCode has to proper length -ok 403 — The color code starts with "#" -ok 404 — The color code contains only valid hex-digits +ok 301 — pluralize is a Function +ok 302 — Produces the plural of the word +ok 303 — Produces the singular of the word +ok 304 — Produces the plural of the word +ok 305 — Prodices the defined plural of the word +ok 306 — Works with a dictionary -# PASS test/inRange/inRange.test.js +# PASS test/mapObject/mapObject.test.js -ok 405 — inRange is a Function -ok 406 — The given number falls within the given range -ok 407 — The given number falls within the given range -ok 408 — The given number does not falls within the given range -ok 409 — The given number does not falls within the given range +ok 307 — mapObject is a Function +ok 308 — mapObject([1, 2, 3], a => a * a) returns { 1: 1, 2: 4, 3: 9 } +ok 309 — mapObject([1, 2, 3, 4], (a, b) => b - a) returns { 1: -1, 2: -1, 3: -1, 4: -1 } +ok 310 — mapObject([1, 2, 3, 4], (a, b) => a - b) returns { 1: 1, 2: 1, 3: 1, 4: 1 } -# PASS test/factorial/factorial.test.js +# PASS test/orderBy/orderBy.test.js -ok 410 — factorial is a Function -ok 411 — Calculates the factorial of 720 -ok 412 — Calculates the factorial of 0 -ok 413 — Calculates the factorial of 1 -ok 414 — Calculates the factorial of 4 -ok 415 — Calculates the factorial of 10 +ok 311 — orderBy is a Function +ok 312 — Returns a sorted array of objects ordered by properties and orders. +ok 313 — Returns a sorted array of objects ordered by properties and orders. -# PASS test/mask/mask.test.js +# PASS test/initializeArrayWithRange/initializeArrayWithRange.test.js -ok 416 — mask is a Function -ok 417 — Replaces all but the last num of characters with the specified mask character -ok 418 — Replaces all but the last num of characters with the specified mask character -ok 419 — Replaces all but the last num of characters with the specified mask character +ok 314 — initializeArrayWithRange is a Function +ok 315 — Initializes an array containing the numbers in the specified range (witout start value) +ok 316 — Initializes an array containing the numbers in the specified range +ok 317 — Initializes an array containing the numbers in the specified range (with step) -# PASS test/toOrdinalSuffix/toOrdinalSuffix.test.js +# PASS test/sampleSize/sampleSize.test.js -ok 420 — toOrdinalSuffix is a Function -ok 421 — Adds an ordinal suffix to a number -ok 422 — Adds an ordinal suffix to a number -ok 423 — Adds an ordinal suffix to a number -ok 424 — Adds an ordinal suffix to a number +ok 318 — sampleSize is a Function +ok 319 — Returns a single element without n specified +ok 320 — Returns a random sample of specified size from an array +ok 321 — Returns all elements in an array if n >= length +ok 322 — Returns an empty array if original array is empty +ok 323 — Returns an empty array if n = 0 -# PASS test/JSONtoCSV/JSONtoCSV.test.js +# PASS test/binomialCoefficient/binomialCoefficient.test.js -ok 425 — JSONtoCSV is a Function -ok 426 — JSONtoCSV works with default delimiter -ok 427 — JSONtoCSV works with custom delimiter +ok 324 — binomialCoefficient is a Function +ok 325 — Returns the appropriate value +ok 326 — Returns the appropriate value +ok 327 — Returns the appropriate value +ok 328 — Returns NaN +ok 329 — Returns NaN -# PASS test/isAnagram/isAnagram.test.js +# PASS test/head/head.test.js -ok 428 — isAnagram is a Function -ok 429 — Checks valid anagram -ok 430 — Works with spaces -ok 431 — Ignores case -ok 432 — Ignores special characters +ok 330 — head is a Function +ok 331 — head({ a: 1234}) returns undefined +ok 332 — head([1, 2, 3]) returns 1 +ok 333 — head({ 0: false}) returns false +ok 334 — head(String) returns S +ok 335 — head(null) throws an Error +ok 336 — head(undefined) throws an Error +ok 337 — head() throws an Error +ok 338 — head([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run + +# PASS test/toCurrency/toCurrency.test.js + +ok 339 — toCurrency is a Function +ok 340 — currency: Euro | currencyLangFormat: Local +ok 341 — currency: US Dollar | currencyLangFormat: English (United States) +ok 342 — currency: Japanese Yen | currencyLangFormat: Local + +# PASS test/randomIntArrayInRange/randomIntArrayInRange.test.js + +ok 343 — randomIntArrayInRange is a Function +ok 344 — The returned array contains only integers +ok 345 — The returned array has the proper length +ok 346 — The returned array's values lie between provided lowerLimit and upperLimit (both inclusive). + +# PASS test/uniqueElementsByRight/uniqueElementsByRight.test.js + +ok 347 — uniqueElementsByRight is a Function +ok 348 — uniqueElementsByRight works for properties +ok 349 — uniqueElementsByRight works for nested properties + +# PASS test/offset/offset.test.js + +ok 350 — offset is a Function +ok 351 — Offset of 0 returns the same array. +ok 352 — Offset > 0 returns the offsetted array. +ok 353 — Offset < 0 returns the reverse offsetted array. +ok 354 — Offset greater than the length of the array returns the same array. +ok 355 — Offset less than the negative length of the array returns the same array. +ok 356 — Offsetting empty array returns an empty array. + +# PASS test/without/without.test.js + +ok 357 — without is a Function +ok 358 — without([2, 1, 2, 3], 1, 2) returns [3] +ok 359 — without([]) returns [] +ok 360 — without([3, 1, true, '3', true], '3', true) returns [3, 1] +ok 361 — without('string'.split(''), 's', 't', 'g') returns ['r', 'i', 'n'] +ok 362 — without() throws an error +ok 363 — without(null) throws an error +ok 364 — without(undefined) throws an error +ok 365 — without(123) throws an error +ok 366 — without({}) throws an error + +# PASS test/fromCamelCase/fromCamelCase.test.js + +ok 367 — fromCamelCase is a Function +ok 368 — Converts a string from camelcase +ok 369 — Converts a string from camelcase +ok 370 — Converts a string from camelcase + +# PASS test/approximatelyEqual/approximatelyEqual.test.js + +ok 371 — approximatelyEqual is a Function +ok 372 — Works for PI / 2 +ok 373 — Works for 0.1 + 0.2 === 0.3 +ok 374 — Works for exactly equal values +ok 375 — Works for a custom epsilon + +# PASS test/all/all.test.js + +ok 376 — all is a Function +ok 377 — Returns true for arrays with no falsey values +ok 378 — Returns false for arrays with 0 +ok 379 — Returns false for arrays with NaN +ok 380 — Returns false for arrays with undefined +ok 381 — Returns false for arrays with null +ok 382 — Returns false for arrays with empty strings +ok 383 — Returns true with predicate function +ok 384 — Returns false with a predicate function + +# PASS test/none/none.test.js + +ok 385 — none is a Function +ok 386 — Returns true for arrays with no truthy values +ok 387 — Returns false for arrays with at least one truthy value +ok 388 — Returns true with a predicate function +ok 389 — Returns false with predicate function # PASS test/capitalize/capitalize.test.js -ok 433 — capitalize is a Function -ok 434 — Capitalizes the first letter of a string -ok 435 — Capitalizes the first letter of a string -ok 436 — Works with characters -ok 437 — "Works with single character words +ok 390 — capitalize is a Function +ok 391 — Capitalizes the first letter of a string +ok 392 — Capitalizes the first letter of a string +ok 393 — Works with characters +ok 394 — "Works with single character words # PASS test/converge/converge.test.js -ok 438 — converge is a Function -ok 439 — Produces the average of the array -ok 440 — Produces the strange concatenation +ok 395 — converge is a Function +ok 396 — Produces the average of the array +ok 397 — Produces the strange concatenation -# PASS test/tomorrow/tomorrow.test.js +# PASS test/randomHexColorCode/randomHexColorCode.test.js -ok 441 — tomorrow is a Function -ok 442 — Returns the correct year -ok 443 — Returns the correct month -ok 444 — Returns the correct date - -# PASS test/shuffle/shuffle.test.js - -ok 445 — shuffle is a Function -ok 446 — Shuffles the array -ok 447 — New array contains all original elements -ok 448 — Works for empty arrays -ok 449 — Works for single-element arrays - -# PASS test/dropRight/dropRight.test.js - -ok 450 — dropRight is a Function -ok 451 — Returns a new array with n elements removed from the right -ok 452 — Returns a new array with n elements removed from the right -ok 453 — Returns a new array with n elements removed from the right +ok 398 — randomHexColorCode is a Function +ok 399 — randomHexColorCode has to proper length +ok 400 — The color code starts with "#" +ok 401 — The color code contains only valid hex-digits # PASS test/deepClone/deepClone.test.js -ok 454 — deepClone is a Function -ok 455 — Shallow cloning works -ok 456 — Deep cloning works -ok 457 — Array shallow cloning works -ok 458 — Array deep cloning works +ok 402 — deepClone is a Function +ok 403 — Shallow cloning works +ok 404 — Deep cloning works +ok 405 — Array shallow cloning works +ok 406 — Array deep cloning works + +# PASS test/mask/mask.test.js + +ok 407 — mask is a Function +ok 408 — Replaces all but the last num of characters with the specified mask character +ok 409 — Replaces all but the last num of characters with the specified mask character +ok 410 — Replaces all but the last num of characters with the specified mask character + +# PASS test/dropRight/dropRight.test.js + +ok 411 — dropRight is a Function +ok 412 — Returns a new array with n elements removed from the right +ok 413 — Returns a new array with n elements removed from the right +ok 414 — Returns a new array with n elements removed from the right + +# PASS test/tomorrow/tomorrow.test.js + +ok 415 — tomorrow is a Function +ok 416 — Returns the correct year +ok 417 — Returns the correct month +ok 418 — Returns the correct date + +# PASS test/isAnagram/isAnagram.test.js + +ok 419 — isAnagram is a Function +ok 420 — Checks valid anagram +ok 421 — Works with spaces +ok 422 — Ignores case +ok 423 — Ignores special characters # PASS test/stringPermutations/stringPermutations.test.js -ok 459 — stringPermutations is a Function -ok 460 — Generates all stringPermutations of a string -ok 461 — Works for single-letter strings -ok 462 — Works for empty strings - -# PASS test/formatDuration/formatDuration.test.js - -ok 463 — formatDuration is a Function -ok 464 — Returns the human readable format of the given number of milliseconds -ok 465 — Returns the human readable format of the given number of milliseconds +ok 424 — stringPermutations is a Function +ok 425 — Generates all stringPermutations of a string +ok 426 — Works for single-letter strings +ok 427 — Works for empty strings # PASS test/prettyBytes/prettyBytes.test.js -ok 466 — prettyBytes is a Function -ok 467 — Converts a number in bytes to a human-readable string. -ok 468 — Converts a number in bytes to a human-readable string. -ok 469 — Converts a number in bytes to a human-readable string. +ok 428 — prettyBytes is a Function +ok 429 — Converts a number in bytes to a human-readable string. +ok 430 — Converts a number in bytes to a human-readable string. +ok 431 — Converts a number in bytes to a human-readable string. + +# PASS test/hexToRGB/hexToRGB.test.js + +ok 432 — hexToRGB is a Function +ok 433 — Converts a color code to a rgb() or rgba() string +ok 434 — Converts a color code to a rgb() or rgba() string +ok 435 — Converts a color code to a rgb() or rgba() string + +# PASS test/capitalizeEveryWord/capitalizeEveryWord.test.js + +ok 436 — capitalizeEveryWord is a Function +ok 437 — Capitalizes the first letter of every word in a string +ok 438 — Works with characters +ok 439 — Works with one word string + +# PASS test/binarySearch/binarySearch.test.js + +ok 440 — binarySearch is a Function +ok 441 — Finds item in array +ok 442 — Returns -1 when not found +ok 443 — Works with empty arrays +ok 444 — Works for one element arrays + +# PASS test/castArray/castArray.test.js + +ok 445 — castArray is a Function +ok 446 — Works for single values +ok 447 — Works for arrays with one value +ok 448 — Works for arrays with multiple value +ok 449 — Works for strings +ok 450 — Works for objects + +# PASS test/inRange/inRange.test.js + +ok 451 — inRange is a Function +ok 452 — The given number falls within the given range +ok 453 — The given number falls within the given range +ok 454 — The given number does not falls within the given range +ok 455 — The given number does not falls within the given range + +# PASS test/JSONtoCSV/JSONtoCSV.test.js + +ok 456 — JSONtoCSV is a Function +ok 457 — JSONtoCSV works with default delimiter +ok 458 — JSONtoCSV works with custom delimiter + +# PASS test/factorial/factorial.test.js + +ok 459 — factorial is a Function +ok 460 — Calculates the factorial of 720 +ok 461 — Calculates the factorial of 0 +ok 462 — Calculates the factorial of 1 +ok 463 — Calculates the factorial of 4 +ok 464 — Calculates the factorial of 10 + +# PASS test/shuffle/shuffle.test.js + +ok 465 — shuffle is a Function +ok 466 — Shuffles the array +ok 467 — New array contains all original elements +ok 468 — Works for empty arrays +ok 469 — Works for single-element arrays # PASS test/isString/isString.test.js @@ -691,96 +691,96 @@ ok 473 — Empty string is a string ok 474 — 10 is not a string ok 475 — true is not string +# PASS test/toOrdinalSuffix/toOrdinalSuffix.test.js + +ok 476 — toOrdinalSuffix is a Function +ok 477 — Adds an ordinal suffix to a number +ok 478 — Adds an ordinal suffix to a number +ok 479 — Adds an ordinal suffix to a number +ok 480 — Adds an ordinal suffix to a number + # PASS test/partition/partition.test.js -ok 476 — partition is a Function -ok 477 — Groups the elements into two arrays, depending on the provided function's truthiness for each element. +ok 481 — partition is a Function +ok 482 — Groups the elements into two arrays, depending on the provided function's truthiness for each element. -# PASS test/hexToRGB/hexToRGB.test.js +# PASS test/formatDuration/formatDuration.test.js -ok 478 — hexToRGB is a Function -ok 479 — Converts a color code to a rgb() or rgba() string -ok 480 — Converts a color code to a rgb() or rgba() string -ok 481 — Converts a color code to a rgb() or rgba() string - -# PASS test/capitalizeEveryWord/capitalizeEveryWord.test.js - -ok 482 — capitalizeEveryWord is a Function -ok 483 — Capitalizes the first letter of every word in a string -ok 484 — Works with characters -ok 485 — Works with one word string - -# PASS test/isObjectLike/isObjectLike.test.js - -ok 486 — isObjectLike is a Function -ok 487 — Returns true for an object -ok 488 — Returns true for an array -ok 489 — Returns false for a function -ok 490 — Returns false for null - -# PASS test/sumPower/sumPower.test.js - -ok 491 — sumPower is a Function -ok 492 — Returns the sum of the powers of all the numbers from start to end -ok 493 — Returns the sum of the powers of all the numbers from start to end -ok 494 — Returns the sum of the powers of all the numbers from start to end - -# PASS test/untildify/untildify.test.js - -ok 495 — untildify is a Function -ok 496 — Contains no tildes -ok 497 — Does not alter the rest of the path -ok 498 — Does not alter paths without tildes +ok 483 — formatDuration is a Function +ok 484 — Returns the human readable format of the given number of milliseconds +ok 485 — Returns the human readable format of the given number of milliseconds # PASS test/isObject/isObject.test.js -ok 499 — isObject is a Function -ok 500 — isObject([1, 2, 3, 4]) is a object -ok 501 — isObject([]) is a object -ok 502 — isObject({ a:1 }) is a object -ok 503 — isObject(true) is not a object - -# PASS test/standardDeviation/standardDeviation.test.js - -ok 504 — standardDeviation is a Function -ok 505 — Returns the standard deviation of an array of numbers -ok 506 — Returns the standard deviation of an array of numbers +ok 486 — isObject is a Function +ok 487 — isObject([1, 2, 3, 4]) is a object +ok 488 — isObject([]) is a object +ok 489 — isObject({ a:1 }) is a object +ok 490 — isObject(true) is not a object # PASS test/URLJoin/URLJoin.test.js -ok 507 — URLJoin is a Function -ok 508 — Returns proper URL -ok 509 — Returns proper URL - -# PASS test/sortedIndex/sortedIndex.test.js - -ok 510 — sortedIndex is a Function -ok 511 — Returns the lowest index at which value should be inserted into array in order to maintain its sort order. -ok 512 — Returns the lowest index at which value should be inserted into array in order to maintain its sort order. +ok 491 — URLJoin is a Function +ok 492 — Returns proper URL +ok 493 — Returns proper URL # PASS test/CSVToJSON/CSVToJSON.test.js -ok 513 — CSVToJSON is a Function -ok 514 — CSVToJSON works with default delimiter -ok 515 — CSVToJSON works with custom delimiter +ok 494 — CSVToJSON is a Function +ok 495 — CSVToJSON works with default delimiter +ok 496 — CSVToJSON works with custom delimiter + +# PASS test/standardDeviation/standardDeviation.test.js + +ok 497 — standardDeviation is a Function +ok 498 — Returns the standard deviation of an array of numbers +ok 499 — Returns the standard deviation of an array of numbers + +# PASS test/sumPower/sumPower.test.js + +ok 500 — sumPower is a Function +ok 501 — Returns the sum of the powers of all the numbers from start to end +ok 502 — Returns the sum of the powers of all the numbers from start to end +ok 503 — Returns the sum of the powers of all the numbers from start to end # PASS test/reducedFilter/reducedFilter.test.js -ok 516 — reducedFilter is a Function -ok 517 — Filter an array of objects based on a condition while also filtering out unspecified keys. +ok 504 — reducedFilter is a Function +ok 505 — Filter an array of objects based on a condition while also filtering out unspecified keys. + +# PASS test/isObjectLike/isObjectLike.test.js + +ok 506 — isObjectLike is a Function +ok 507 — Returns true for an object +ok 508 — Returns true for an array +ok 509 — Returns false for a function +ok 510 — Returns false for null + +# PASS test/untildify/untildify.test.js + +ok 511 — untildify is a Function +ok 512 — Contains no tildes +ok 513 — Does not alter the rest of the path +ok 514 — Does not alter paths without tildes # PASS test/unzip/unzip.test.js -ok 518 — unzip is a Function -ok 519 — unzip([['a', 1, true], ['b', 2, false]]) equals [['a','b'], [1, 2], [true, false]] -ok 520 — unzip([['a', 1, true], ['b', 2]]) equals [['a','b'], [1, 2], [true]] +ok 515 — unzip is a Function +ok 516 — unzip([['a', 1, true], ['b', 2, false]]) equals [['a','b'], [1, 2], [true, false]] +ok 517 — unzip([['a', 1, true], ['b', 2]]) equals [['a','b'], [1, 2], [true]] # PASS test/byteSize/byteSize.test.js -ok 521 — byteSize is a Function -ok 522 — Works for a single letter -ok 523 — Works for a common string -ok 524 — Works for emoji +ok 518 — byteSize is a Function +ok 519 — Works for a single letter +ok 520 — Works for a common string +ok 521 — Works for emoji + +# PASS test/sortedIndex/sortedIndex.test.js + +ok 522 — sortedIndex is a Function +ok 523 — Returns the lowest index at which value should be inserted into array in order to maintain its sort order. +ok 524 — Returns the lowest index at which value should be inserted into array in order to maintain its sort order. # PASS test/isAbsoluteURL/isAbsoluteURL.test.js @@ -789,1316 +789,1320 @@ ok 526 — Given string is an absolute URL ok 527 — Given string is an absolute URL ok 528 — Given string is not an absolute URL -# PASS test/uniqueSymmetricDifference/uniqueSymmetricDifference.test.js - -ok 529 — uniqueSymmetricDifference is a Function -ok 530 — Returns the symmetric difference between two arrays. -ok 531 — Does not return duplicates from one array - -# PASS test/matches/matches.test.js - -ok 532 — matches is a Function -ok 533 — Matches returns true for two similar objects -ok 534 — Matches returns false for two non-similar objects - -# PASS test/collectInto/collectInto.test.js - -ok 535 — collectInto is a Function -ok 536 — Works with multiple promises - -# PASS test/pad/pad.test.js - -ok 537 — pad is a Function -ok 538 — cat is padded on both sides -ok 539 — length of string is 8 -ok 540 — pads 42 with "0" -ok 541 — does not truncates if string exceeds length - -# PASS test/symmetricDifferenceWith/symmetricDifferenceWith.test.js - -ok 542 — symmetricDifferenceWith is a Function -ok 543 — Returns the symmetric difference between two arrays, using a provided function as a comparator - -# PASS test/uncurry/uncurry.test.js - -ok 544 — uncurry is a Function -ok 545 — Works without a provided value for n -ok 546 — Works with n = 2 -ok 547 — Works with n = 3 - -# PASS test/isValidJSON/isValidJSON.test.js - -ok 548 — isValidJSON is a Function -ok 549 — {"name":"Adam","age":20} is a valid JSON -ok 550 — {"name":"Adam",age:"20"} is not a valid JSON -ok 551 — null is a valid JSON - # PASS test/functionName/functionName.test.js -ok 552 — functionName is a Function -ok 553 — Works for native functions -ok 554 — Works for functions -ok 555 — Works for arrow functions - -# PASS test/nthArg/nthArg.test.js - -ok 556 — nthArg is a Function -ok 557 — Returns the nth argument -ok 558 — Returns undefined if arguments too few -ok 559 — Works for negative values - -# PASS test/reject/reject.test.js - -ok 560 — reject is a Function -ok 561 — Works with numbers -ok 562 — Works with strings - -# PASS test/differenceBy/differenceBy.test.js - -ok 563 — differenceBy is a Function -ok 564 — Works using a native function and numbers -ok 565 — Works with arrow function and objects - -# PASS test/functions/functions.test.js - -ok 566 — functions is a Function -ok 567 — Returns own methods -ok 568 — Returns own and inherited methods - -# PASS test/intersectionWith/intersectionWith.test.js - -ok 569 — intersectionWith is a Function -ok 570 — Returns a list of elements that exist in both arrays, using a provided comparator function - -# PASS test/isLowerCase/isLowerCase.test.js - -ok 571 — isLowerCase is a Function -ok 572 — passed string is a lowercase -ok 573 — passed string is a lowercase -ok 574 — passed value is not a lowercase - -# PASS test/pipeAsyncFunctions/pipeAsyncFunctions.test.js - -ok 575 — pipeAsyncFunctions is a Function -ok 576 — pipeAsyncFunctions result should be 15 - -# PASS test/averageBy/averageBy.test.js - -ok 577 — averageBy is a Function -ok 578 — Produces the right result with a function -ok 579 — Produces the right result with a property name - -# PASS test/matchesWith/matchesWith.test.js - -ok 580 — matchesWith is a Function -ok 581 — Returns true for two objects with similar values, based on the provided function - -# PASS test/memoize/memoize.test.js - -ok 582 — memoize is a Function -ok 583 — Function works properly -ok 584 — Function works properly -ok 585 — Cache stores values +ok 529 — functionName is a Function +ok 530 — Works for native functions +ok 531 — Works for functions +ok 532 — Works for arrow functions # PASS test/groupBy/groupBy.test.js -ok 586 — groupBy is a Function -ok 587 — Groups the elements of an array based on the given function -ok 588 — Groups the elements of an array based on the given function +ok 533 — groupBy is a Function +ok 534 — Groups the elements of an array based on the given function +ok 535 — Groups the elements of an array based on the given function -# PASS test/UUIDGeneratorNode/UUIDGeneratorNode.test.js +# PASS test/matches/matches.test.js -ok 589 — UUIDGeneratorNode is a Function -ok 590 — Contains dashes in the proper places -ok 591 — Only contains hexadecimal digits +ok 536 — matches is a Function +ok 537 — Matches returns true for two similar objects +ok 538 — Matches returns false for two non-similar objects + +# PASS test/uniqueSymmetricDifference/uniqueSymmetricDifference.test.js + +ok 539 — uniqueSymmetricDifference is a Function +ok 540 — Returns the symmetric difference between two arrays. +ok 541 — Does not return duplicates from one array + +# PASS test/isValidJSON/isValidJSON.test.js + +ok 542 — isValidJSON is a Function +ok 543 — {"name":"Adam","age":20} is a valid JSON +ok 544 — {"name":"Adam",age:"20"} is not a valid JSON +ok 545 — null is a valid JSON + +# PASS test/collectInto/collectInto.test.js + +ok 546 — collectInto is a Function +ok 547 — Works with multiple promises + +# PASS test/pad/pad.test.js + +ok 548 — pad is a Function +ok 549 — cat is padded on both sides +ok 550 — length of string is 8 +ok 551 — pads 42 with "0" +ok 552 — does not truncates if string exceeds length + +# PASS test/uncurry/uncurry.test.js + +ok 553 — uncurry is a Function +ok 554 — Works without a provided value for n +ok 555 — Works with n = 2 +ok 556 — Works with n = 3 + +# PASS test/symmetricDifferenceWith/symmetricDifferenceWith.test.js + +ok 557 — symmetricDifferenceWith is a Function +ok 558 — Returns the symmetric difference between two arrays, using a provided function as a comparator # PASS test/collatz/collatz.test.js -ok 592 — collatz is a Function -ok 593 — When n is even, divide by 2 -ok 594 — When n is odd, times by 3 and add 1 -ok 595 — Eventually reaches 1 +ok 559 — collatz is a Function +ok 560 — When n is even, divide by 2 +ok 561 — When n is odd, times by 3 and add 1 +ok 562 — Eventually reaches 1 -# PASS test/symmetricDifference/symmetricDifference.test.js +# PASS test/matchesWith/matchesWith.test.js -ok 596 — symmetricDifference is a Function -ok 597 — Returns the symmetric difference between two arrays. -ok 598 — Returns duplicates from one array +ok 563 — matchesWith is a Function +ok 564 — Returns true for two objects with similar values, based on the provided function # PASS test/lowercaseKeys/lowercaseKeys.test.js -ok 599 — lowercaseKeys is a Function -ok 600 — Lowercases object keys -ok 601 — Does not mutate original object +ok 565 — lowercaseKeys is a Function +ok 566 — Lowercases object keys +ok 567 — Does not mutate original object -# PASS test/sample/sample.test.js +# PASS test/reject/reject.test.js -ok 602 — sample is a Function -ok 603 — Returns a random element from the array -ok 604 — Works for single-element arrays -ok 605 — Returns undefined for empty array +ok 568 — reject is a Function +ok 569 — Works with numbers +ok 570 — Works with strings -# PASS test/drop/drop.test.js +# PASS test/intersectionWith/intersectionWith.test.js -ok 606 — drop is a Function -ok 607 — Works without the last argument -ok 608 — Removes appropriate element count as specified -ok 609 — Empties array given a count greater than length - -# PASS test/elo/elo.test.js - -ok 610 — elo is a Function -ok 611 — Standard 1v1s -ok 612 — Standard 1v1s -ok 613 — 4 player FFA, all same rank +ok 571 — intersectionWith is a Function +ok 572 — Returns a list of elements that exist in both arrays, using a provided comparator function # PASS test/luhnCheck/luhnCheck.test.js -ok 614 — luhnCheck is a Function -ok 615 — validates identification number -ok 616 — validates identification number -ok 617 — validates identification number +ok 573 — luhnCheck is a Function +ok 574 — validates identification number +ok 575 — validates identification number +ok 576 — validates identification number + +# PASS test/symmetricDifference/symmetricDifference.test.js + +ok 577 — symmetricDifference is a Function +ok 578 — Returns the symmetric difference between two arrays. +ok 579 — Returns duplicates from one array + +# PASS test/sample/sample.test.js + +ok 580 — sample is a Function +ok 581 — Returns a random element from the array +ok 582 — Works for single-element arrays +ok 583 — Returns undefined for empty array # PASS test/flattenObject/flattenObject.test.js -ok 618 — flattenObject is a Function -ok 619 — Flattens an object with the paths for keys -ok 620 — Works with arrays +ok 584 — flattenObject is a Function +ok 585 — Flattens an object with the paths for keys +ok 586 — Works with arrays -# PASS test/bindKey/bindKey.test.js +# PASS test/UUIDGeneratorNode/UUIDGeneratorNode.test.js -ok 621 — bindKey is a Function -ok 622 — Binds function to an object context +ok 587 — UUIDGeneratorNode is a Function +ok 588 — Contains dashes in the proper places +ok 589 — Only contains hexadecimal digits + +# PASS test/pipeAsyncFunctions/pipeAsyncFunctions.test.js + +ok 590 — pipeAsyncFunctions is a Function +ok 591 — pipeAsyncFunctions result should be 15 + +# PASS test/drop/drop.test.js + +ok 592 — drop is a Function +ok 593 — Works without the last argument +ok 594 — Removes appropriate element count as specified +ok 595 — Empties array given a count greater than length + +# PASS test/nthArg/nthArg.test.js + +ok 596 — nthArg is a Function +ok 597 — Returns the nth argument +ok 598 — Returns undefined if arguments too few +ok 599 — Works for negative values + +# PASS test/isLowerCase/isLowerCase.test.js + +ok 600 — isLowerCase is a Function +ok 601 — passed string is a lowercase +ok 602 — passed string is a lowercase +ok 603 — passed value is not a lowercase # PASS test/renameKeys/renameKeys.test.js -ok 623 — renameKeys is a Function -ok 624 — renameKeys is a Function +ok 604 — renameKeys is a Function +ok 605 — renameKeys is a Function -# PASS test/isArrayLike/isArrayLike.test.js +# PASS test/memoize/memoize.test.js -ok 625 — isArrayLike is a Function -ok 626 — Returns true for a string -ok 627 — Returns true for an array -ok 628 — Returns false for null +ok 606 — memoize is a Function +ok 607 — Function works properly +ok 608 — Function works properly +ok 609 — Cache stores values + +# PASS test/differenceBy/differenceBy.test.js + +ok 610 — differenceBy is a Function +ok 611 — Works using a native function and numbers +ok 612 — Works with arrow function and objects + +# PASS test/functions/functions.test.js + +ok 613 — functions is a Function +ok 614 — Returns own methods +ok 615 — Returns own and inherited methods + +# PASS test/bindKey/bindKey.test.js + +ok 616 — bindKey is a Function +ok 617 — Binds function to an object context + +# PASS test/elo/elo.test.js + +ok 618 — elo is a Function +ok 619 — Standard 1v1s +ok 620 — Standard 1v1s +ok 621 — 4 player FFA, all same rank # PASS test/findLastKey/findLastKey.test.js -ok 629 — findLastKey is a Function -ok 630 — eturns the appropriate key +ok 622 — findLastKey is a Function +ok 623 — eturns the appropriate key -# PASS test/isUpperCase/isUpperCase.test.js +# PASS test/averageBy/averageBy.test.js -ok 631 — isUpperCase is a Function -ok 632 — ABC is all upper case -ok 633 — abc is not all upper case -ok 634 — A3@$ is all uppercase - -# PASS test/truthCheckCollection/truthCheckCollection.test.js - -ok 635 — truthCheckCollection is a Function -ok 636 — second argument is truthy on all elements of a collection +ok 624 — averageBy is a Function +ok 625 — Produces the right result with a function +ok 626 — Produces the right result with a property name # PASS test/isPromiseLike/isPromiseLike.test.js -ok 637 — isPromiseLike is a Function -ok 638 — Returns true for a promise-like object -ok 639 — Returns false for an empty object - -# PASS test/promisify/promisify.test.js - -ok 640 — promisify is a Function -ok 641 — Returns a promise -ok 642 — Runs the function provided +ok 627 — isPromiseLike is a Function +ok 628 — Returns true for a promise-like object +ok 629 — Returns false for an empty object # PASS test/symmetricDifferenceBy/symmetricDifferenceBy.test.js -ok 643 — symmetricDifferenceBy is a Function -ok 644 — Returns the symmetric difference between two arrays, after applying the provided function to each array element of both +ok 630 — symmetricDifferenceBy is a Function +ok 631 — Returns the symmetric difference between two arrays, after applying the provided function to each array element of both -# PASS test/arrayToCSV/arrayToCSV.test.js +# PASS test/isArrayLike/isArrayLike.test.js -ok 645 — arrayToCSV is a Function -ok 646 — arrayToCSV works with default delimiter -ok 647 — arrayToCSV works with custom delimiter +ok 632 — isArrayLike is a Function +ok 633 — Returns true for a string +ok 634 — Returns true for an array +ok 635 — Returns false for null -# PASS test/coalesceFactory/coalesceFactory.test.js +# PASS test/promisify/promisify.test.js -ok 648 — coalesceFactory is a Function -ok 649 — Returns a customized coalesce function +ok 636 — promisify is a Function +ok 637 — Returns a promise +ok 638 — Runs the function provided -# PASS test/pullAtValue/pullAtValue.test.js +# PASS test/isUpperCase/isUpperCase.test.js -ok 650 — pullAtValue is a Function -ok 651 — Pulls the specified values -ok 652 — Pulls the specified values - -# PASS test/findKey/findKey.test.js - -ok 653 — findKey is a Function -ok 654 — Returns the appropriate key - -# PASS test/bind/bind.test.js - -ok 655 — bind is a Function -ok 656 — Binds to an object context - -# PASS test/reduceSuccessive/reduceSuccessive.test.js - -ok 657 — reduceSuccessive is a Function -ok 658 — Returns the array of successively reduced values - -# PASS test/maxBy/maxBy.test.js - -ok 659 — maxBy is a Function -ok 660 — Produces the right result with a function -ok 661 — Produces the right result with a property name - -# PASS test/unzipWith/unzipWith.test.js - -ok 662 — unzipWith is a Function -ok 663 — unzipWith([[1, 10, 100], [2, 20, 200]], (...args) => args.reduce((acc, v) => acc + v, 0)) equals [3, 30, 300] - -# PASS test/isNil/isNil.test.js - -ok 664 — isNil is a Function -ok 665 — Returns true for null -ok 666 — Returns true for undefined -ok 667 — Returns false for an empty string - -# PASS test/pullAtIndex/pullAtIndex.test.js - -ok 668 — pullAtIndex is a Function -ok 669 — Pulls the given values -ok 670 — Pulls the given values - -# PASS test/transform/transform.test.js - -ok 671 — transform is a Function -ok 672 — Transforms an object - -# PASS test/intersectionBy/intersectionBy.test.js - -ok 673 — intersectionBy is a Function -ok 674 — Returns a list of elements that exist in both arrays, after applying the provided function to each array element of both - -# PASS test/isTravisCI/isTravisCI.test.js - -ok 675 — isTravisCI is a Function -ok 676 — Running on Travis, correctly evaluates +ok 639 — isUpperCase is a Function +ok 640 — ABC is all upper case +ok 641 — abc is not all upper case +ok 642 — A3@$ is all uppercase # PASS test/minBy/minBy.test.js -ok 677 — minBy is a Function -ok 678 — Produces the right result with a function -ok 679 — Produces the right result with a property name +ok 643 — minBy is a Function +ok 644 — Produces the right result with a function +ok 645 — Produces the right result with a property name -# PASS test/runPromisesInSeries/runPromisesInSeries.test.js +# PASS test/maxBy/maxBy.test.js -ok 680 — runPromisesInSeries is a Function -ok 681 — Runs promises in series +ok 646 — maxBy is a Function +ok 647 — Produces the right result with a function +ok 648 — Produces the right result with a property name -# PASS test/isPlainObject/isPlainObject.test.js +# PASS test/findKey/findKey.test.js -ok 682 — isPlainObject is a Function -ok 683 — Returns true for a plain object -ok 684 — Returns false for a Map (example of non-plain object) +ok 649 — findKey is a Function +ok 650 — Returns the appropriate key + +# PASS test/truthCheckCollection/truthCheckCollection.test.js + +ok 651 — truthCheckCollection is a Function +ok 652 — second argument is truthy on all elements of a collection + +# PASS test/arrayToCSV/arrayToCSV.test.js + +ok 653 — arrayToCSV is a Function +ok 654 — arrayToCSV works with default delimiter +ok 655 — arrayToCSV works with custom delimiter + +# PASS test/pullAtValue/pullAtValue.test.js + +ok 656 — pullAtValue is a Function +ok 657 — Pulls the specified values +ok 658 — Pulls the specified values + +# PASS test/coalesceFactory/coalesceFactory.test.js + +ok 659 — coalesceFactory is a Function +ok 660 — Returns a customized coalesce function # PASS test/merge/merge.test.js -ok 685 — merge is a Function -ok 686 — Merges two objects +ok 661 — merge is a Function +ok 662 — Merges two objects -# PASS test/pipeFunctions/pipeFunctions.test.js +# PASS test/unzipWith/unzipWith.test.js -ok 687 — pipeFunctions is a Function -ok 688 — Performs left-to-right function composition +ok 663 — unzipWith is a Function +ok 664 — unzipWith([[1, 10, 100], [2, 20, 200]], (...args) => args.reduce((acc, v) => acc + v, 0)) equals [3, 30, 300] -# PASS test/extendHex/extendHex.test.js +# PASS test/reduceSuccessive/reduceSuccessive.test.js -ok 689 — extendHex is a Function -ok 690 — Extends a 3-digit color code to a 6-digit color code -ok 691 — Extends a 3-digit color code to a 6-digit color code +ok 665 — reduceSuccessive is a Function +ok 666 — Returns the array of successively reduced values # PASS test/takeRight/takeRight.test.js -ok 692 — takeRight is a Function -ok 693 — Returns an array with n elements removed from the end -ok 694 — Returns an array with n elements removed from the end +ok 667 — takeRight is a Function +ok 668 — Returns an array with n elements removed from the end +ok 669 — Returns an array with n elements removed from the end -# PASS test/indexOfAll/indexOfAll.test.js +# PASS test/bind/bind.test.js -ok 695 — indexOfAll is a Function -ok 696 — Returns all indices of val in an array -ok 697 — Returns all indices of val in an array +ok 670 — bind is a Function +ok 671 — Binds to an object context -# PASS test/gcd/gcd.test.js +# PASS test/runPromisesInSeries/runPromisesInSeries.test.js -ok 698 — gcd is a Function -ok 699 — Calculates the greatest common divisor between two or more numbers/arrays -ok 700 — Calculates the greatest common divisor between two or more numbers/arrays +ok 672 — runPromisesInSeries is a Function +ok 673 — Runs promises in series + +# PASS test/isNil/isNil.test.js + +ok 674 — isNil is a Function +ok 675 — Returns true for null +ok 676 — Returns true for undefined +ok 677 — Returns false for an empty string + +# PASS test/pullAtIndex/pullAtIndex.test.js + +ok 678 — pullAtIndex is a Function +ok 679 — Pulls the given values +ok 680 — Pulls the given values + +# PASS test/intersectionBy/intersectionBy.test.js + +ok 681 — intersectionBy is a Function +ok 682 — Returns a list of elements that exist in both arrays, after applying the provided function to each array element of both + +# PASS test/transform/transform.test.js + +ok 683 — transform is a Function +ok 684 — Transforms an object # PASS test/getURLParameters/getURLParameters.test.js -ok 701 — getURLParameters is a Function -ok 702 — Returns an object containing the parameters of the current URL +ok 685 — getURLParameters is a Function +ok 686 — Returns an object containing the parameters of the current URL -# PASS test/take/take.test.js +# PASS test/indexOfAll/indexOfAll.test.js -ok 703 — take is a Function -ok 704 — Returns an array with n elements removed from the beginning. -ok 705 — Returns an array with n elements removed from the beginning. +ok 687 — indexOfAll is a Function +ok 688 — Returns all indices of val in an array +ok 689 — Returns all indices of val in an array -# PASS test/cleanObj/cleanObj.test.js +# PASS test/isPlainObject/isPlainObject.test.js -ok 706 — cleanObj is a Function -ok 707 — Removes any properties except the ones specified from a JSON object - -# PASS test/countBy/countBy.test.js - -ok 708 — countBy is a Function -ok 709 — Works for functions -ok 710 — Works for property names +ok 690 — isPlainObject is a Function +ok 691 — Returns true for a plain object +ok 692 — Returns false for a Map (example of non-plain object) # PASS test/chainAsync/chainAsync.test.js -ok 711 — chainAsync is a Function -ok 712 — Calls all functions in an array +ok 693 — chainAsync is a Function +ok 694 — Calls all functions in an array -# PASS test/decapitalize/decapitalize.test.js +# PASS test/cleanObj/cleanObj.test.js -ok 713 — decapitalize is a Function -ok 714 — Works with default parameter -ok 715 — Works with second parameter set to true +ok 695 — cleanObj is a Function +ok 696 — Removes any properties except the ones specified from a JSON object -# PASS test/shallowClone/shallowClone.test.js +# PASS test/countBy/countBy.test.js -ok 716 — shallowClone is a Function -ok 717 — Shallow cloning works -ok 718 — Does not clone deeply +ok 697 — countBy is a Function +ok 698 — Works for functions +ok 699 — Works for property names -# PASS test/nthElement/nthElement.test.js +# PASS test/gcd/gcd.test.js -ok 719 — nthElement is a Function -ok 720 — Returns the nth element of an array. -ok 721 — Returns the nth element of an array. +ok 700 — gcd is a Function +ok 701 — Calculates the greatest common divisor between two or more numbers/arrays +ok 702 — Calculates the greatest common divisor between two or more numbers/arrays # PASS test/overArgs/overArgs.test.js -ok 722 — overArgs is a Function -ok 723 — Invokes the provided function with its arguments transformed +ok 703 — overArgs is a Function +ok 704 — Invokes the provided function with its arguments transformed -# PASS test/hashNode/hashNode.test.js +# PASS test/pipeFunctions/pipeFunctions.test.js -ok 724 — hashNode is a Function -ok 725 — Produces the appropriate hash +ok 705 — pipeFunctions is a Function +ok 706 — Performs left-to-right function composition -# PASS test/initializeArrayWithValues/initializeArrayWithValues.test.js +# PASS test/extendHex/extendHex.test.js -ok 726 — initializeArrayWithValues is a Function -ok 727 — Initializes and fills an array with the specified values +ok 707 — extendHex is a Function +ok 708 — Extends a 3-digit color code to a 6-digit color code +ok 709 — Extends a 3-digit color code to a 6-digit color code + +# PASS test/decapitalize/decapitalize.test.js + +ok 710 — decapitalize is a Function +ok 711 — Works with default parameter +ok 712 — Works with second parameter set to true + +# PASS test/take/take.test.js + +ok 713 — take is a Function +ok 714 — Returns an array with n elements removed from the beginning. +ok 715 — Returns an array with n elements removed from the beginning. + +# PASS test/isTravisCI/isTravisCI.test.js + +ok 716 — isTravisCI is a Function +ok 717 — Running on Travis, correctly evaluates + +# PASS test/nthElement/nthElement.test.js + +ok 718 — nthElement is a Function +ok 719 — Returns the nth element of an array. +ok 720 — Returns the nth element of an array. # PASS test/spreadOver/spreadOver.test.js -ok 728 — spreadOver is a Function -ok 729 — Takes a variadic function and returns a closure that accepts an array of arguments to map to the inputs of the function. +ok 721 — spreadOver is a Function +ok 722 — Takes a variadic function and returns a closure that accepts an array of arguments to map to the inputs of the function. + +# PASS test/shallowClone/shallowClone.test.js + +ok 723 — shallowClone is a Function +ok 724 — Shallow cloning works +ok 725 — Does not clone deeply + +# PASS test/hashNode/hashNode.test.js + +ok 726 — hashNode is a Function +ok 727 — Produces the appropriate hash + +# PASS test/partialRight/partialRight.test.js + +ok 728 — partialRight is a Function +ok 729 — Appends arguments # PASS test/composeRight/composeRight.test.js ok 730 — composeRight is a Function ok 731 — Performs left-to-right function composition -# PASS test/percentile/percentile.test.js - -ok 732 — percentile is a Function -ok 733 — Uses the percentile formula to calculate how many numbers in the given array are less or equal to the given value. - -# PASS test/lcm/lcm.test.js - -ok 734 — lcm is a Function -ok 735 — Returns the least common multiple of two or more numbers. -ok 736 — Returns the least common multiple of two or more numbers. - -# PASS test/flatten/flatten.test.js - -ok 737 — flatten is a Function -ok 738 — Flattens an array -ok 739 — Flattens an array - -# PASS test/compose/compose.test.js - -ok 740 — compose is a Function -ok 741 — Performs right-to-left function composition - -# PASS test/differenceWith/differenceWith.test.js - -ok 742 — differenceWith is a Function -ok 743 — Filters out all values from an array - -# PASS test/partialRight/partialRight.test.js - -ok 744 — partialRight is a Function -ok 745 — Appends arguments - -# PASS test/splitLines/splitLines.test.js - -ok 746 — splitLines is a Function -ok 747 — Splits a multiline string into an array of lines. - -# PASS test/mapValues/mapValues.test.js - -ok 748 — mapValues is a Function -ok 749 — Maps values - -# PASS test/sortedLastIndexBy/sortedLastIndexBy.test.js - -ok 750 — sortedLastIndexBy is a Function -ok 751 — Returns the highest index to insert the element without messing up the list order - # PASS test/permutations/permutations.test.js -ok 752 — permutations is a Function -ok 753 — Generates all permutations of an array +ok 732 — permutations is a Function +ok 733 — Generates all permutations of an array # PASS test/getDaysDiffBetweenDates/getDaysDiffBetweenDates.test.js -ok 754 — getDaysDiffBetweenDates is a Function -ok 755 — Returns the difference in days between two dates +ok 734 — getDaysDiffBetweenDates is a Function +ok 735 — Returns the difference in days between two dates -# PASS test/partial/partial.test.js +# PASS test/compose/compose.test.js -ok 756 — partial is a Function -ok 757 — Prepends arguments +ok 736 — compose is a Function +ok 737 — Performs right-to-left function composition + +# PASS test/percentile/percentile.test.js + +ok 738 — percentile is a Function +ok 739 — Uses the percentile formula to calculate how many numbers in the given array are less or equal to the given value. + +# PASS test/mapValues/mapValues.test.js + +ok 740 — mapValues is a Function +ok 741 — Maps values + +# PASS test/initializeArrayWithValues/initializeArrayWithValues.test.js + +ok 742 — initializeArrayWithValues is a Function +ok 743 — Initializes and fills an array with the specified values + +# PASS test/sortedLastIndexBy/sortedLastIndexBy.test.js + +ok 744 — sortedLastIndexBy is a Function +ok 745 — Returns the highest index to insert the element without messing up the list order # PASS test/unionWith/unionWith.test.js -ok 758 — unionWith is a Function -ok 759 — Produces the appropriate results - -# PASS test/when/when.test.js - -ok 760 — when is a Function -ok 761 — Returns the proper result -ok 762 — Returns the proper result - -# PASS test/degreesToRads/degreesToRads.test.js - -ok 763 — degreesToRads is a Function -ok 764 — Returns the appropriate value - -# PASS test/bifurcateBy/bifurcateBy.test.js - -ok 765 — bifurcateBy is a Function -ok 766 — Splits the collection into two groups - -# PASS test/minN/minN.test.js - -ok 767 — minN is a Function -ok 768 — Returns the n minimum elements from the provided array -ok 769 — Returns the n minimum elements from the provided array - -# PASS test/palindrome/palindrome.test.js - -ok 770 — palindrome is a Function -ok 771 — Given string is a palindrome -ok 772 — Given string is not a palindrome - -# PASS test/maxN/maxN.test.js - -ok 773 — maxN is a Function -ok 774 — Returns the n maximum elements from the provided array -ok 775 — Returns the n maximum elements from the provided array +ok 746 — unionWith is a Function +ok 747 — Produces the appropriate results # PASS test/bindAll/bindAll.test.js -ok 776 — bindAll is a Function -ok 777 — Binds to an object context +ok 748 — bindAll is a Function +ok 749 — Binds to an object context -# PASS test/bifurcate/bifurcate.test.js +# PASS test/when/when.test.js -ok 778 — bifurcate is a Function -ok 779 — Splits the collection into two groups +ok 750 — when is a Function +ok 751 — Returns the proper result +ok 752 — Returns the proper result -# PASS test/median/median.test.js +# PASS test/minN/minN.test.js -ok 780 — median is a Function -ok 781 — Returns the median of an array of numbers -ok 782 — Returns the median of an array of numbers +ok 753 — minN is a Function +ok 754 — Returns the n minimum elements from the provided array +ok 755 — Returns the n minimum elements from the provided array -# PASS test/forOwnRight/forOwnRight.test.js +# PASS test/maxN/maxN.test.js -ok 783 — forOwnRight is a Function -ok 784 — Iterates over an element's key-value pairs in reverse +ok 756 — maxN is a Function +ok 757 — Returns the n maximum elements from the provided array +ok 758 — Returns the n maximum elements from the provided array -# PASS test/sortedIndexBy/sortedIndexBy.test.js +# PASS test/splitLines/splitLines.test.js -ok 785 — sortedIndexBy is a Function -ok 786 — Returns the lowest index to insert the element without messing up the list order +ok 759 — splitLines is a Function +ok 760 — Splits a multiline string into an array of lines. + +# PASS test/degreesToRads/degreesToRads.test.js + +ok 761 — degreesToRads is a Function +ok 762 — Returns the appropriate value # PASS test/size/size.test.js -ok 787 — size is a Function -ok 788 — Get size of arrays, objects or strings. -ok 789 — Get size of arrays, objects or strings. +ok 763 — size is a Function +ok 764 — Get size of arrays, objects or strings. +ok 765 — Get size of arrays, objects or strings. -# PASS test/attempt/attempt.test.js +# PASS test/bifurcateBy/bifurcateBy.test.js -ok 790 — attempt is a Function -ok 791 — Returns a value -ok 792 — Returns an error +ok 766 — bifurcateBy is a Function +ok 767 — Splits the collection into two groups -# PASS test/flip/flip.test.js +# PASS test/lcm/lcm.test.js -ok 793 — flip is a Function -ok 794 — Flips argument order +ok 768 — lcm is a Function +ok 769 — Returns the least common multiple of two or more numbers. +ok 770 — Returns the least common multiple of two or more numbers. -# PASS test/sortedLastIndex/sortedLastIndex.test.js +# PASS test/median/median.test.js -ok 795 — sortedLastIndex is a Function -ok 796 — Returns the highest index to insert the element without messing up the list order +ok 771 — median is a Function +ok 772 — Returns the median of an array of numbers +ok 773 — Returns the median of an array of numbers + +# PASS test/differenceWith/differenceWith.test.js + +ok 774 — differenceWith is a Function +ok 775 — Filters out all values from an array + +# PASS test/flatten/flatten.test.js + +ok 776 — flatten is a Function +ok 777 — Flattens an array +ok 778 — Flattens an array # PASS test/unescapeHTML/unescapeHTML.test.js -ok 797 — unescapeHTML is a Function -ok 798 — Unescapes escaped HTML characters. +ok 779 — unescapeHTML is a Function +ok 780 — Unescapes escaped HTML characters. -# PASS test/rearg/rearg.test.js +# PASS test/palindrome/palindrome.test.js -ok 799 — rearg is a Function -ok 800 — Reorders arguments in invoked function +ok 781 — palindrome is a Function +ok 782 — Given string is a palindrome +ok 783 — Given string is not a palindrome + +# PASS test/bifurcate/bifurcate.test.js + +ok 784 — bifurcate is a Function +ok 785 — Splits the collection into two groups # PASS test/pickBy/pickBy.test.js -ok 801 — pickBy is a Function -ok 802 — Creates an object composed of the properties the given function returns truthy for. - -# PASS test/compact/compact.test.js - -ok 803 — compact is a Function -ok 804 — Removes falsey values from an array +ok 786 — pickBy is a Function +ok 787 — Creates an object composed of the properties the given function returns truthy for. # PASS test/isFunction/isFunction.test.js -ok 805 — isFunction is a Function -ok 806 — passed value is a function -ok 807 — passed value is not a function +ok 788 — isFunction is a Function +ok 789 — passed value is a function +ok 790 — passed value is not a function + +# PASS test/partial/partial.test.js + +ok 791 — partial is a Function +ok 792 — Prepends arguments # PASS test/dropRightWhile/dropRightWhile.test.js -ok 808 — dropRightWhile is a Function -ok 809 — Removes elements from the end of an array until the passed function returns true. +ok 793 — dropRightWhile is a Function +ok 794 — Removes elements from the end of an array until the passed function returns true. -# PASS test/isBoolean/isBoolean.test.js +# PASS test/forOwnRight/forOwnRight.test.js -ok 810 — isBoolean is a Function -ok 811 — passed value is not a boolean -ok 812 — passed value is not a boolean +ok 795 — forOwnRight is a Function +ok 796 — Iterates over an element's key-value pairs in reverse -# PASS test/sortCharactersInString/sortCharactersInString.test.js +# PASS test/sortedIndexBy/sortedIndexBy.test.js -ok 813 — sortCharactersInString is a Function -ok 814 — Alphabetically sorts the characters in a string. +ok 797 — sortedIndexBy is a Function +ok 798 — Returns the lowest index to insert the element without messing up the list order -# PASS test/pullBy/pullBy.test.js +# PASS test/get/get.test.js -ok 815 — pullBy is a Function -ok 816 — Pulls the specified values +ok 799 — get is a Function +ok 800 — Retrieve a property indicated by the selector from an object. -# PASS test/omitBy/omitBy.test.js +# PASS test/escapeHTML/escapeHTML.test.js -ok 817 — omitBy is a Function -ok 818 — Creates an object composed of the properties the given function returns falsey for +ok 801 — escapeHTML is a Function +ok 802 — Escapes a string for use in HTML # PASS test/initialize2DArray/initialize2DArray.test.js -ok 819 — initialize2DArray is a Function -ok 820 — Initializes a 2D array of given width and height and value +ok 803 — initialize2DArray is a Function +ok 804 — Initializes a 2D array of given width and height and value -# PASS test/toDecimalMark/toDecimalMark.test.js +# PASS test/sortedLastIndex/sortedLastIndex.test.js -ok 821 — toDecimalMark is a Function -ok 822 — convert a float-point arithmetic to the Decimal mark form +ok 805 — sortedLastIndex is a Function +ok 806 — Returns the highest index to insert the element without messing up the list order + +# PASS test/unflattenObject/unflattenObject.test.js + +ok 807 — unflattenObject is a Function +ok 808 — Unflattens an object with the paths for keys + +# PASS test/rearg/rearg.test.js + +ok 809 — rearg is a Function +ok 810 — Reorders arguments in invoked function + +# PASS test/attempt/attempt.test.js + +ok 811 — attempt is a Function +ok 812 — Returns a value +ok 813 — Returns an error + +# PASS test/stableSort/stableSort.test.js + +ok 814 — stableSort is a Function +ok 815 — Array is properly sorted + +# PASS test/isNumber/isNumber.test.js + +ok 816 — isNumber is a Function +ok 817 — passed argument is a number +ok 818 — passed argument is not a number + +# PASS test/omitBy/omitBy.test.js + +ok 819 — omitBy is a Function +ok 820 — Creates an object composed of the properties the given function returns falsey for + +# PASS test/objectFromPairs/objectFromPairs.test.js + +ok 821 — objectFromPairs is a Function +ok 822 — Creates an object from the given key-value pairs. # PASS test/forEachRight/forEachRight.test.js ok 823 — forEachRight is a Function ok 824 — Iterates over the array in reverse -# PASS test/isNumber/isNumber.test.js - -ok 825 — isNumber is a Function -ok 826 — passed argument is a number -ok 827 — passed argument is not a number - -# PASS test/stripHTMLTags/stripHTMLTags.test.js - -ok 828 — stripHTMLTags is a Function -ok 829 — Removes HTML tags - -# PASS test/unflattenObject/unflattenObject.test.js - -ok 830 — unflattenObject is a Function -ok 831 — Unflattens an object with the paths for keys - -# PASS test/objectFromPairs/objectFromPairs.test.js - -ok 832 — objectFromPairs is a Function -ok 833 — Creates an object from the given key-value pairs. - -# PASS test/objectToPairs/objectToPairs.test.js - -ok 834 — objectToPairs is a Function -ok 835 — Creates an array of key-value pair arrays from an object. - -# PASS test/escapeHTML/escapeHTML.test.js - -ok 836 — escapeHTML is a Function -ok 837 — Escapes a string for use in HTML - # PASS test/isArray/isArray.test.js -ok 838 — isArray is a Function -ok 839 — passed value is an array -ok 840 — passed value is not an array - -# PASS test/get/get.test.js - -ok 841 — get is a Function -ok 842 — Retrieve a property indicated by the selector from an object. - -# PASS test/stableSort/stableSort.test.js - -ok 843 — stableSort is a Function -ok 844 — Array is properly sorted +ok 825 — isArray is a Function +ok 826 — passed value is an array +ok 827 — passed value is not an array # PASS test/xProd/xProd.test.js -ok 845 — xProd is a Function -ok 846 — xProd([1, 2], ['a', 'b']) returns [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b']] +ok 828 — xProd is a Function +ok 829 — xProd([1, 2], ['a', 'b']) returns [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b']] -# PASS test/ary/ary.test.js +# PASS test/compact/compact.test.js -ok 847 — ary is a Function -ok 848 — Discards arguments with index >=n - -# PASS test/unfold/unfold.test.js - -ok 849 — unfold is a Function -ok 850 — Works with a given function, producing an array - -# PASS test/filterNonUnique/filterNonUnique.test.js - -ok 851 — filterNonUnique is a Function -ok 852 — Filters out the non-unique values in an array - -# PASS test/forOwn/forOwn.test.js - -ok 853 — forOwn is a Function -ok 854 — Iterates over an element's key-value pairs +ok 830 — compact is a Function +ok 831 — Removes falsey values from an array # PASS test/findLastIndex/findLastIndex.test.js -ok 855 — findLastIndex is a Function -ok 856 — Finds last index for which the given function returns true +ok 832 — findLastIndex is a Function +ok 833 — Finds last index for which the given function returns true -# PASS test/takeRightWhile/takeRightWhile.test.js +# PASS test/filterNonUnique/filterNonUnique.test.js -ok 857 — takeRightWhile is a Function -ok 858 — Removes elements until the function returns true +ok 834 — filterNonUnique is a Function +ok 835 — Filters out the non-unique values in an array -# PASS test/removeNonASCII/removeNonASCII.test.js +# PASS test/unfold/unfold.test.js -ok 859 — removeNonASCII is a Function -ok 860 — Removes non-ASCII characters +ok 836 — unfold is a Function +ok 837 — Works with a given function, producing an array -# PASS test/countOccurrences/countOccurrences.test.js +# PASS test/sortCharactersInString/sortCharactersInString.test.js -ok 861 — countOccurrences is a Function -ok 862 — Counts the occurrences of a value in an array +ok 838 — sortCharactersInString is a Function +ok 839 — Alphabetically sorts the characters in a string. -# PASS test/dropWhile/dropWhile.test.js +# PASS test/ary/ary.test.js -ok 863 — dropWhile is a Function -ok 864 — Removes elements in an array until the passed function returns true. +ok 840 — ary is a Function +ok 841 — Discards arguments with index >=n -# PASS test/curry/curry.test.js +# PASS test/flip/flip.test.js -ok 865 — curry is a Function -ok 866 — curries a Math.pow -ok 867 — curries a Math.min +ok 842 — flip is a Function +ok 843 — Flips argument order -# PASS test/isNull/isNull.test.js +# PASS test/isBoolean/isBoolean.test.js -ok 868 — isNull is a Function -ok 869 — passed argument is a null -ok 870 — passed argument is a null +ok 844 — isBoolean is a Function +ok 845 — passed value is not a boolean +ok 846 — passed value is not a boolean -# PASS test/remove/remove.test.js +# PASS test/toDecimalMark/toDecimalMark.test.js -ok 871 — remove is a Function -ok 872 — Removes elements from an array for which the given function returns false +ok 847 — toDecimalMark is a Function +ok 848 — convert a float-point arithmetic to the Decimal mark form + +# PASS test/forOwn/forOwn.test.js + +ok 849 — forOwn is a Function +ok 850 — Iterates over an element's key-value pairs + +# PASS test/pullBy/pullBy.test.js + +ok 851 — pullBy is a Function +ok 852 — Pulls the specified values + +# PASS test/stripHTMLTags/stripHTMLTags.test.js + +ok 853 — stripHTMLTags is a Function +ok 854 — Removes HTML tags # PASS test/truncateString/truncateString.test.js -ok 873 — truncateString is a Function -ok 874 — Truncates a "boomerang" up to a specified length. +ok 855 — truncateString is a Function +ok 856 — Truncates a "boomerang" up to a specified length. # PASS test/pick/pick.test.js -ok 875 — pick is a Function -ok 876 — Picks the key-value pairs corresponding to the given keys from an object. - -# PASS test/defaults/defaults.test.js - -ok 877 — defaults is a Function -ok 878 — Assigns default values for undefined properties - -# PASS test/delay/delay.test.js - -ok 879 — delay is a Function -ok 880 — Works as expecting, passing arguments properly - -# PASS test/over/over.test.js - -ok 881 — over is a Function -ok 882 — Applies given functions over multiple arguments - -# PASS test/similarity/similarity.test.js - -ok 883 — similarity is a Function -ok 884 — Returns an array of elements that appear in both arrays. - -# PASS test/clampNumber/clampNumber.test.js - -ok 885 — clampNumber is a Function -ok 886 — Clamps num within the inclusive range specified by the boundary values a and b +ok 857 — pick is a Function +ok 858 — Picks the key-value pairs corresponding to the given keys from an object. # PASS test/intersection/intersection.test.js -ok 887 — intersection is a Function -ok 888 — Returns a list of elements that exist in both arrays +ok 859 — intersection is a Function +ok 860 — Returns a list of elements that exist in both arrays -# PASS test/omit/omit.test.js +# PASS test/objectToPairs/objectToPairs.test.js -ok 889 — omit is a Function -ok 890 — Omits the key-value pairs corresponding to the given keys from an object +ok 861 — objectToPairs is a Function +ok 862 — Creates an array of key-value pair arrays from an object. -# PASS test/findLast/findLast.test.js +# PASS test/delay/delay.test.js -ok 891 — findLast is a Function -ok 892 — Finds last element for which the given function returns true - -# PASS test/isEven/isEven.test.js - -ok 893 — isEven is a Function -ok 894 — 4 is even number -ok 895 — 5 is not an even number - -# PASS test/escapeRegExp/escapeRegExp.test.js - -ok 896 — escapeRegExp is a Function -ok 897 — Escapes a string to use in a regular expression +ok 863 — delay is a Function +ok 864 — Works as expecting, passing arguments properly # PASS test/atob/atob.test.js -ok 898 — atob is a Function -ok 899 — atob("Zm9vYmFy") equals "foobar" -ok 900 — atob("Z") returns "" +ok 865 — atob is a Function +ok 866 — atob("Zm9vYmFy") equals "foobar" +ok 867 — atob("Z") returns "" + +# PASS test/clampNumber/clampNumber.test.js + +ok 868 — clampNumber is a Function +ok 869 — Clamps num within the inclusive range specified by the boundary values a and b + +# PASS test/isNull/isNull.test.js + +ok 870 — isNull is a Function +ok 871 — passed argument is a null +ok 872 — passed argument is a null + +# PASS test/similarity/similarity.test.js + +ok 873 — similarity is a Function +ok 874 — Returns an array of elements that appear in both arrays. + +# PASS test/omit/omit.test.js + +ok 875 — omit is a Function +ok 876 — Omits the key-value pairs corresponding to the given keys from an object # PASS test/parseCookie/parseCookie.test.js -ok 901 — parseCookie is a Function -ok 902 — Parses the cookie +ok 877 — parseCookie is a Function +ok 878 — Parses the cookie + +# PASS test/over/over.test.js + +ok 879 — over is a Function +ok 880 — Applies given functions over multiple arguments + +# PASS test/takeRightWhile/takeRightWhile.test.js + +ok 881 — takeRightWhile is a Function +ok 882 — Removes elements until the function returns true + +# PASS test/removeNonASCII/removeNonASCII.test.js + +ok 883 — removeNonASCII is a Function +ok 884 — Removes non-ASCII characters + +# PASS test/isEven/isEven.test.js + +ok 885 — isEven is a Function +ok 886 — 4 is even number +ok 887 — 5 is not an even number + +# PASS test/dropWhile/dropWhile.test.js + +ok 888 — dropWhile is a Function +ok 889 — Removes elements in an array until the passed function returns true. + +# PASS test/countOccurrences/countOccurrences.test.js + +ok 890 — countOccurrences is a Function +ok 891 — Counts the occurrences of a value in an array # PASS test/pull/pull.test.js -ok 903 — pull is a Function -ok 904 — Pulls the specified values +ok 892 — pull is a Function +ok 893 — Pulls the specified values + +# PASS test/findLast/findLast.test.js + +ok 894 — findLast is a Function +ok 895 — Finds last element for which the given function returns true # PASS test/takeWhile/takeWhile.test.js -ok 905 — takeWhile is a Function -ok 906 — Removes elements until the function returns true +ok 896 — takeWhile is a Function +ok 897 — Removes elements until the function returns true -# PASS test/coalesce/coalesce.test.js +# PASS test/defaults/defaults.test.js -ok 907 — coalesce is a Function -ok 908 — Returns the first non-null/undefined argument +ok 898 — defaults is a Function +ok 899 — Assigns default values for undefined properties -# PASS test/cloneRegExp/cloneRegExp.test.js +# PASS test/remove/remove.test.js -ok 909 — cloneRegExp is a Function -ok 910 — Clones regular expressions properly +ok 900 — remove is a Function +ok 901 — Removes elements from an array for which the given function returns false -# PASS test/times/times.test.js +# PASS test/curry/curry.test.js -ok 911 — times is a Function -ok 912 — Runs a function the specified amount of times - -# PASS test/powerset/powerset.test.js - -ok 913 — powerset is a Function -ok 914 — Returns the powerset of a given array of numbers. +ok 902 — curry is a Function +ok 903 — curries a Math.pow +ok 904 — curries a Math.min # PASS test/fibonacci/fibonacci.test.js -ok 915 — fibonacci is a Function -ok 916 — Generates an array, containing the Fibonacci sequence +ok 905 — fibonacci is a Function +ok 906 — Generates an array, containing the Fibonacci sequence + +# PASS test/powerset/powerset.test.js + +ok 907 — powerset is a Function +ok 908 — Returns the powerset of a given array of numbers. # PASS test/hammingDistance/hammingDistance.test.js -ok 917 — hammingDistance is a Function -ok 918 — retuns hamming disance between 2 values +ok 909 — hammingDistance is a Function +ok 910 — retuns hamming disance between 2 values -# PASS test/distance/distance.test.js +# PASS test/cloneRegExp/cloneRegExp.test.js -ok 919 — distance is a Function -ok 920 — Calculates the distance between two points +ok 911 — cloneRegExp is a Function +ok 912 — Clones regular expressions properly -# PASS test/primes/primes.test.js +# PASS test/escapeRegExp/escapeRegExp.test.js -ok 921 — primes is a Function -ok 922 — Generates primes up to a given number, using the Sieve of Eratosthenes. - -# PASS test/difference/difference.test.js - -ok 923 — difference is a Function -ok 924 — Returns the difference between two arrays - -# PASS test/tail/tail.test.js - -ok 925 — tail is a Function -ok 926 — Returns tail -ok 927 — Returns tail - -# PASS test/serializeCookie/serializeCookie.test.js - -ok 928 — serializeCookie is a Function -ok 929 — Serializes the cookie +ok 913 — escapeRegExp is a Function +ok 914 — Escapes a string to use in a regular expression # PASS test/deepFlatten/deepFlatten.test.js -ok 930 — deepFlatten is a Function -ok 931 — Deep flattens an array +ok 915 — deepFlatten is a Function +ok 916 — Deep flattens an array -# PASS test/RGBToHex/RGBToHex.test.js +# PASS test/distance/distance.test.js -ok 932 — RGBToHex is a Function -ok 933 — Converts the values of RGB components to a color code. +ok 917 — distance is a Function +ok 918 — Calculates the distance between two points -# PASS test/unionBy/unionBy.test.js +# PASS test/difference/difference.test.js -ok 934 — unionBy is a Function -ok 935 — Produces the appropriate results - -# PASS test/everyNth/everyNth.test.js - -ok 936 — everyNth is a Function -ok 937 — Returns every nth element in an array - -# PASS test/initial/initial.test.js - -ok 938 — initial is a Function -ok 939 — Returns all the elements of an array except the last one - -# PASS test/negate/negate.test.js - -ok 940 — negate is a Function -ok 941 — Negates a predicate function - -# PASS test/sleep/sleep.test.js - -ok 942 — sleep is a Function -ok 943 — Works as expected - -# PASS test/unary/unary.test.js - -ok 944 — unary is a Function -ok 945 — Discards arguments after the first one - -# PASS test/isSymbol/isSymbol.test.js - -ok 946 — isSymbol is a Function -ok 947 — Checks if the given argument is a symbol - -# PASS test/call/call.test.js - -ok 948 — call is a Function -ok 949 — Calls function on given object - -# PASS test/getType/getType.test.js - -ok 950 — getType is a Function -ok 951 — Returns the native type of a value +ok 919 — difference is a Function +ok 920 — Returns the difference between two arrays # PASS test/radsToDegrees/radsToDegrees.test.js -ok 952 — radsToDegrees is a Function -ok 953 — Returns the appropriate value +ok 921 — radsToDegrees is a Function +ok 922 — Returns the appropriate value -# PASS test/isUndefined/isUndefined.test.js +# PASS test/times/times.test.js -ok 954 — isUndefined is a Function -ok 955 — Returns true for undefined +ok 923 — times is a Function +ok 924 — Runs a function the specified amount of times -# PASS test/isDivisible/isDivisible.test.js +# PASS test/unionBy/unionBy.test.js -ok 956 — isDivisible is a Function -ok 957 — The number 6 is divisible by 3 +ok 925 — unionBy is a Function +ok 926 — Produces the appropriate results + +# PASS test/initial/initial.test.js + +ok 927 — initial is a Function +ok 928 — Returns all the elements of an array except the last one # PASS test/mapKeys/mapKeys.test.js -ok 958 — mapKeys is a Function -ok 959 — Maps keys +ok 929 — mapKeys is a Function +ok 930 — Maps keys -# PASS test/digitize/digitize.test.js +# PASS test/sleep/sleep.test.js -ok 960 — digitize is a Function -ok 961 — Converts a number to an array of digits +ok 931 — sleep is a Function +ok 932 — Works as expected -# PASS test/debounce/debounce.test.js +# PASS test/coalesce/coalesce.test.js -ok 962 — debounce is a Function -ok 963 — Works as expected +ok 933 — coalesce is a Function +ok 934 — Returns the first non-null/undefined argument # PASS test/reverseString/reverseString.test.js -ok 964 — reverseString is a Function -ok 965 — Reverses a string. +ok 935 — reverseString is a Function +ok 936 — Reverses a string. -# PASS test/sdbm/sdbm.test.js +# PASS test/isDivisible/isDivisible.test.js -ok 966 — sdbm is a Function -ok 967 — Hashes the input string into a whole number. +ok 937 — isDivisible is a Function +ok 938 — The number 6 is divisible by 3 + +# PASS test/digitize/digitize.test.js + +ok 939 — digitize is a Function +ok 940 — Converts a number to an array of digits + +# PASS test/getType/getType.test.js + +ok 941 — getType is a Function +ok 942 — Returns the native type of a value + +# PASS test/primes/primes.test.js + +ok 943 — primes is a Function +ok 944 — Generates primes up to a given number, using the Sieve of Eratosthenes. + +# PASS test/isSymbol/isSymbol.test.js + +ok 945 — isSymbol is a Function +ok 946 — Checks if the given argument is a symbol + +# PASS test/tail/tail.test.js + +ok 947 — tail is a Function +ok 948 — Returns tail +ok 949 — Returns tail + +# PASS test/serializeCookie/serializeCookie.test.js + +ok 950 — serializeCookie is a Function +ok 951 — Serializes the cookie + +# PASS test/RGBToHex/RGBToHex.test.js + +ok 952 — RGBToHex is a Function +ok 953 — Converts the values of RGB components to a color code. # PASS test/sum/sum.test.js -ok 968 — sum is a Function -ok 969 — Returns the sum of two or more numbers/arrays. +ok 954 — sum is a Function +ok 955 — Returns the sum of two or more numbers/arrays. -# PASS test/initializeArrayWithRangeRight/initializeArrayWithRangeRight.test.js +# PASS test/negate/negate.test.js -ok 970 — initializeArrayWithRangeRight is a Function +ok 956 — negate is a Function +ok 957 — Negates a predicate function -# PASS test/btoa/btoa.test.js +# PASS test/everyNth/everyNth.test.js -ok 971 — btoa is a Function -ok 972 — btoa("foobar") equals "Zm9vYmFy" +ok 958 — everyNth is a Function +ok 959 — Returns every nth element in an array + +# PASS test/sdbm/sdbm.test.js + +ok 960 — sdbm is a Function +ok 961 — Hashes the input string into a whole number. + +# PASS test/unary/unary.test.js + +ok 962 — unary is a Function +ok 963 — Discards arguments after the first one + +# PASS test/isUndefined/isUndefined.test.js + +ok 964 — isUndefined is a Function +ok 965 — Returns true for undefined # PASS test/isPrime/isPrime.test.js -ok 973 — isPrime is a Function -ok 974 — passed number is a prime - -# PASS test/getMeridiemSuffixOfInteger/getMeridiemSuffixOfInteger.test.js - -ok 975 — getMeridiemSuffixOfInteger is a Function +ok 966 — isPrime is a Function +ok 967 — passed number is a prime # PASS test/elementIsVisibleInViewport/elementIsVisibleInViewport.test.js -ok 976 — elementIsVisibleInViewport is a Function +ok 968 — elementIsVisibleInViewport is a Function -# PASS test/fibonacciCountUntilNum/fibonacciCountUntilNum.test.js +# PASS test/isBrowserTabFocused/isBrowserTabFocused.test.js -ok 977 — fibonacciCountUntilNum is a Function +ok 969 — isBrowserTabFocused is a Function + +# PASS test/call/call.test.js + +ok 970 — call is a Function +ok 971 — Calls function on given object + +# PASS test/debounce/debounce.test.js + +ok 972 — debounce is a Function +ok 973 — Works as expected # PASS test/recordAnimationFrames/recordAnimationFrames.test.js -ok 978 — recordAnimationFrames is a Function - -# PASS test/getColonTimeFromDate/getColonTimeFromDate.test.js - -ok 979 — getColonTimeFromDate is a Function +ok 974 — recordAnimationFrames is a Function # PASS test/UUIDGeneratorBrowser/UUIDGeneratorBrowser.test.js -ok 980 — UUIDGeneratorBrowser is a Function +ok 975 — UUIDGeneratorBrowser is a Function + +# PASS test/getColonTimeFromDate/getColonTimeFromDate.test.js + +ok 976 — getColonTimeFromDate is a Function # PASS test/initializeNDArray/initializeNDArray.test.js -ok 981 — initializeNDArray is a Function +ok 977 — initializeNDArray is a Function -# PASS test/readFileLines/readFileLines.test.js +# PASS test/initializeArrayWithRangeRight/initializeArrayWithRangeRight.test.js -ok 982 — readFileLines is a Function +ok 978 — initializeArrayWithRangeRight is a Function + +# PASS test/getScrollPosition/getScrollPosition.test.js + +ok 979 — getScrollPosition is a Function + +# PASS test/isArmstrongNumber/isArmstrongNumber.test.js + +ok 980 — isArmstrongNumber is a Function # PASS test/onUserInputChange/onUserInputChange.test.js -ok 983 — onUserInputChange is a Function +ok 981 — onUserInputChange is a Function -# PASS test/httpsRedirect/httpsRedirect.test.js +# PASS test/fibonacciUntilNum/fibonacciUntilNum.test.js -ok 984 — httpsRedirect is a Function +ok 982 — fibonacciUntilNum is a Function + +# PASS test/observeMutations/observeMutations.test.js + +ok 983 — observeMutations is a Function + +# PASS test/btoa/btoa.test.js + +ok 984 — btoa is a Function +ok 985 — btoa("foobar") equals "Zm9vYmFy" + +# PASS test/levenshteinDistance/levenshteinDistance.test.js + +ok 986 — levenshteinDistance is a Function # PASS test/detectDeviceType/detectDeviceType.test.js -ok 985 — detectDeviceType is a Function - -# PASS test/isTypedArray/isTypedArray.test.js - -ok 986 — isTypedArray is a Function - -# PASS test/nodeListToArray/nodeListToArray.test.js - -ok 987 — nodeListToArray is a Function - -# PASS test/bottomVisible/bottomVisible.test.js - -ok 988 — bottomVisible is a Function - -# PASS test/mostPerformant/mostPerformant.test.js - -ok 989 — mostPerformant is a Function +ok 987 — detectDeviceType is a Function # PASS test/elementContains/elementContains.test.js -ok 990 — elementContains is a Function +ok 988 — elementContains is a Function -# PASS test/triggerEvent/triggerEvent.test.js +# PASS test/fibonacciCountUntilNum/fibonacciCountUntilNum.test.js -ok 991 — triggerEvent is a Function +ok 989 — fibonacciCountUntilNum is a Function -# PASS test/isArrayBuffer/isArrayBuffer.test.js +# PASS test/nodeListToArray/nodeListToArray.test.js -ok 992 — isArrayBuffer is a Function +ok 990 — nodeListToArray is a Function -# PASS test/insertBefore/insertBefore.test.js +# PASS test/getMeridiemSuffixOfInteger/getMeridiemSuffixOfInteger.test.js -ok 993 — insertBefore is a Function +ok 991 — getMeridiemSuffixOfInteger is a Function + +# PASS test/speechSynthesis/speechSynthesis.test.js + +ok 992 — speechSynthesis is a Function + +# PASS test/copyToClipboard/copyToClipboard.test.js + +ok 993 — copyToClipboard is a Function # PASS test/arrayToHtmlList/arrayToHtmlList.test.js ok 994 — arrayToHtmlList is a Function -# PASS test/isBrowserTabFocused/isBrowserTabFocused.test.js +# PASS test/mostPerformant/mostPerformant.test.js -ok 995 — isBrowserTabFocused is a Function +ok 995 — mostPerformant is a Function -# PASS test/howManyTimes/howManyTimes.test.js +# PASS test/createElement/createElement.test.js -ok 996 — howManyTimes is a Function +ok 996 — createElement is a Function -# PASS test/isArmstrongNumber/isArmstrongNumber.test.js +# PASS test/bottomVisible/bottomVisible.test.js -ok 997 — isArmstrongNumber is a Function +ok 997 — bottomVisible is a Function -# PASS test/fibonacciUntilNum/fibonacciUntilNum.test.js +# PASS test/readFileLines/readFileLines.test.js -ok 998 — fibonacciUntilNum is a Function +ok 998 — readFileLines is a Function -# PASS test/speechSynthesis/speechSynthesis.test.js +# PASS test/isArrayBuffer/isArrayBuffer.test.js -ok 999 — speechSynthesis is a Function +ok 999 — isArrayBuffer is a Function -# PASS test/observeMutations/observeMutations.test.js +# PASS test/httpsRedirect/httpsRedirect.test.js -ok 1000 — observeMutations is a Function +ok 1000 — httpsRedirect is a Function -# PASS test/copyToClipboard/copyToClipboard.test.js +# PASS test/createEventHub/createEventHub.test.js -ok 1001 — copyToClipboard is a Function +ok 1001 — createEventHub is a Function -# PASS test/getScrollPosition/getScrollPosition.test.js +# PASS test/isWeakMap/isWeakMap.test.js -ok 1002 — getScrollPosition is a Function +ok 1002 — isWeakMap is a Function # PASS test/removeVowels/removeVowels.test.js ok 1003 — removeVowels is a Function -# PASS test/createElement/createElement.test.js - -ok 1004 — createElement is a Function - -# PASS test/hashBrowser/hashBrowser.test.js - -ok 1005 — hashBrowser is a Function - -# PASS test/createEventHub/createEventHub.test.js - -ok 1006 — createEventHub is a Function - -# PASS test/smoothScroll/smoothScroll.test.js - -ok 1007 — smoothScroll is a Function - -# PASS test/levenshteinDistance/levenshteinDistance.test.js - -ok 1008 — levenshteinDistance is a Function - # PASS test/scrollToTop/scrollToTop.test.js -ok 1009 — scrollToTop is a Function +ok 1004 — scrollToTop is a Function # PASS test/toggleClass/toggleClass.test.js -ok 1010 — toggleClass is a Function - -# PASS test/httpPost/httpPost.test.js - -ok 1011 — httpPost is a Function - -# PASS test/isSimilar/isSimilar.test.js - -ok 1012 — isSimilar is a Function - -# PASS test/setStyle/setStyle.test.js - -ok 1013 — setStyle is a Function - -# PASS test/JSONToDate/JSONToDate.test.js - -ok 1014 — JSONToDate is a Function - -# PASS test/countVowels/countVowels.test.js - -ok 1015 — countVowels is a Function - -# PASS test/insertAfter/insertAfter.test.js - -ok 1016 — insertAfter is a Function +ok 1005 — toggleClass is a Function # PASS test/timeTaken/timeTaken.test.js -ok 1017 — timeTaken is a Function +ok 1006 — timeTaken is a Function + +# PASS test/howManyTimes/howManyTimes.test.js + +ok 1007 — howManyTimes is a Function + +# PASS test/smoothScroll/smoothScroll.test.js + +ok 1008 — smoothScroll is a Function + +# PASS test/insertBefore/insertBefore.test.js + +ok 1009 — insertBefore is a Function # PASS test/isBrowser/isBrowser.test.js -ok 1018 — isBrowser is a Function +ok 1010 — isBrowser is a Function + +# PASS test/countVowels/countVowels.test.js + +ok 1011 — countVowels is a Function # PASS test/JSONToFile/JSONToFile.test.js -ok 1019 — JSONToFile is a Function +ok 1012 — JSONToFile is a Function -# PASS test/isWeakSet/isWeakSet.test.js +# PASS test/insertAfter/insertAfter.test.js -ok 1020 — isWeakSet is a Function - -# PASS test/colorize/colorize.test.js - -ok 1021 — colorize is a Function - -# PASS test/prefix/prefix.test.js - -ok 1022 — prefix is a Function - -# PASS test/isWeakMap/isWeakMap.test.js - -ok 1023 — isWeakMap is a Function - -# PASS test/zipWith/zipWith.test.js - -ok 1024 — zipWith is a Function - -# PASS test/currentURL/currentURL.test.js - -ok 1025 — currentURL is a Function - -# PASS test/hasClass/hasClass.test.js - -ok 1026 — hasClass is a Function - -# PASS test/hasFlags/hasFlags.test.js - -ok 1027 — hasFlags is a Function +ok 1013 — insertAfter is a Function # PASS test/httpDelete/httpDelete.test.js -ok 1028 — httpDelete is a Function +ok 1014 — httpDelete is a Function -# PASS test/factors/factors.test.js +# PASS test/JSONToDate/JSONToDate.test.js -ok 1029 — factors is a Function +ok 1015 — JSONToDate is a Function + +# PASS test/hashBrowser/hashBrowser.test.js + +ok 1016 — hashBrowser is a Function + +# PASS test/triggerEvent/triggerEvent.test.js + +ok 1017 — triggerEvent is a Function + +# PASS test/currentURL/currentURL.test.js + +ok 1018 — currentURL is a Function + +# PASS test/isTypedArray/isTypedArray.test.js + +ok 1019 — isTypedArray is a Function + +# PASS test/isSimilar/isSimilar.test.js + +ok 1020 — isSimilar is a Function # PASS test/redirect/redirect.test.js -ok 1030 — redirect is a Function +ok 1021 — redirect is a Function + +# PASS test/httpPost/httpPost.test.js + +ok 1022 — httpPost is a Function + +# PASS test/isWeakSet/isWeakSet.test.js + +ok 1023 — isWeakSet is a Function # PASS test/runAsync/runAsync.test.js -ok 1031 — runAsync is a Function - -# PASS test/throttle/throttle.test.js - -ok 1032 — throttle is a Function - -# PASS test/getStyle/getStyle.test.js - -ok 1033 — getStyle is a Function +ok 1024 — runAsync is a Function # PASS test/isRegExp/isRegExp.test.js -ok 1034 — isRegExp is a Function +ok 1025 — isRegExp is a Function -# PASS test/httpPut/httpPut.test.js +# PASS test/setStyle/setStyle.test.js -ok 1035 — httpPut is a Function +ok 1026 — setStyle is a Function -# PASS test/counter/counter.test.js +# PASS test/colorize/colorize.test.js -ok 1036 — counter is a Function - -# PASS test/isMap/isMap.test.js - -ok 1037 — isMap is a Function - -# PASS test/solveRPN/solveRPN.test.js - -ok 1038 — solveRPN is a Function - -# PASS test/toHash/toHash.test.js - -ok 1039 — toHash is a Function - -# PASS test/httpGet/httpGet.test.js - -ok 1040 — httpGet is a Function - -# PASS test/hide/hide.test.js - -ok 1041 — hide is a Function - -# PASS test/defer/defer.test.js - -ok 1042 — defer is a Function - -# PASS test/show/show.test.js - -ok 1043 — show is a Function - -# PASS test/off/off.test.js - -ok 1044 — off is a Function - -# PASS test/nest/nest.test.js - -ok 1045 — nest is a Function +ok 1027 — colorize is a Function # PASS test/isSet/isSet.test.js -ok 1046 — isSet is a Function +ok 1028 — isSet is a Function -# PASS test/hz/hz.test.js +# PASS test/httpGet/httpGet.test.js -ok 1047 — hz is a Function +ok 1029 — httpGet is a Function -# PASS test/on/on.test.js +# PASS test/isMap/isMap.test.js -ok 1048 — on is a Function +ok 1030 — isMap is a Function -# PASS test/once/once.test.js +# PASS test/zipWith/zipWith.test.js -ok 1049 — once is a Function +ok 1031 — zipWith is a Function + +# PASS test/factors/factors.test.js + +ok 1032 — factors is a Function + +# PASS test/prefix/prefix.test.js + +ok 1033 — prefix is a Function + +# PASS test/hasClass/hasClass.test.js + +ok 1034 — hasClass is a Function + +# PASS test/hasFlags/hasFlags.test.js + +ok 1035 — hasFlags is a Function + +# PASS test/getStyle/getStyle.test.js + +ok 1036 — getStyle is a Function + +# PASS test/pipeLog/pipeLog.test.js + +ok 1037 — pipeLog is a Function + +# PASS test/hide/hide.test.js + +ok 1038 — hide is a Function + +# PASS test/defer/defer.test.js + +ok 1039 — defer is a Function + +# PASS test/throttle/throttle.test.js + +ok 1040 — throttle is a Function + +# PASS test/nest/nest.test.js + +ok 1041 — nest is a Function + +# PASS test/solveRPN/solveRPN.test.js + +ok 1042 — solveRPN is a Function # PASS test/sumBy/sumBy.test.js -ok 1050 — sumBy is a Function +ok 1043 — sumBy is a Function -1..1050 +# PASS test/once/once.test.js -# Test Suites: 100% ██████████, 347 passed, 347 total -# Tests: 100% ██████████, 1050 passed, 1050 total -# Time: 46.877s +ok 1044 — once is a Function + +# PASS test/counter/counter.test.js + +ok 1045 — counter is a Function + +# PASS test/httpPut/httpPut.test.js + +ok 1046 — httpPut is a Function + +# PASS test/show/show.test.js + +ok 1047 — show is a Function + +# PASS test/toHash/toHash.test.js + +ok 1048 — toHash is a Function + +# PASS test/hz/hz.test.js + +ok 1049 — hz is a Function + +# PASS test/off/off.test.js + +ok 1050 — off is a Function + +# PASS test/on/on.test.js + +ok 1051 — on is a Function + +1..1051 + +# Test Suites: 100% ██████████, 348 passed, 348 total +# Tests: 100% ██████████, 1051 passed, 1051 total +# Time: 57.744s # Ran all test suites.