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