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