umt 2.3.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (362) hide show
  1. package/module/Array/chunk.js +5 -3
  2. package/module/Array/chunk.js.map +1 -1
  3. package/module/Array/dualPivotQuickSort.d.ts +1 -2
  4. package/module/Array/dualPivotQuickSort.js +5 -26
  5. package/module/Array/dualPivotQuickSort.js.map +1 -1
  6. package/module/Array/quickSort.js +7 -25
  7. package/module/Array/quickSort.js.map +1 -1
  8. package/module/Array/sortingHelpers/applyInsertionSortIfNeeded.d.ts +13 -0
  9. package/module/Array/sortingHelpers/applyInsertionSortIfNeeded.js +20 -0
  10. package/module/Array/sortingHelpers/applyInsertionSortIfNeeded.js.map +1 -0
  11. package/module/Array/sortingHelpers/rangeValidator.d.ts +17 -0
  12. package/module/Array/sortingHelpers/rangeValidator.js +26 -0
  13. package/module/Array/sortingHelpers/rangeValidator.js.map +1 -0
  14. package/module/Validate/object/core.d.ts +2 -6
  15. package/module/Validate/object/core.js.map +1 -1
  16. package/module/Validate/type.d.ts +1 -0
  17. package/module/es5/Array/chunk.js +5 -3
  18. package/module/es5/Array/dualPivotQuickSort.d.ts +1 -2
  19. package/module/es5/Array/dualPivotQuickSort.js +8 -28
  20. package/module/es5/Array/quickSort.js +10 -25
  21. package/module/es5/Array/sortingHelpers/applyInsertionSortIfNeeded.d.ts +13 -0
  22. package/module/es5/Array/sortingHelpers/applyInsertionSortIfNeeded.js +25 -0
  23. package/module/es5/Array/sortingHelpers/rangeValidator.d.ts +17 -0
  24. package/module/es5/Array/sortingHelpers/rangeValidator.js +35 -0
  25. package/module/es5/Validate/object/core.d.ts +2 -6
  26. package/module/es5/Validate/type.d.ts +1 -0
  27. package/module/es5/tsconfig.tsbuildinfo +1 -1
  28. package/package.json +21 -17
  29. package/module/es5/tests/integration/Array/drop-and-first.test.d.ts +0 -1
  30. package/module/es5/tests/integration/Array/drop-and-first.test.js +0 -34
  31. package/module/es5/tests/integration/Tool/parseJson-and-Validate.test.d.ts +0 -1
  32. package/module/es5/tests/integration/Tool/parseJson-and-Validate.test.js +0 -80
  33. package/module/es5/tests/unit/Advance/rangeAdvance.test.d.ts +0 -1
  34. package/module/es5/tests/unit/Advance/rangeAdvance.test.js +0 -26
  35. package/module/es5/tests/unit/Array/arraysJoin.test.d.ts +0 -1
  36. package/module/es5/tests/unit/Array/arraysJoin.test.js +0 -19
  37. package/module/es5/tests/unit/Array/binarySearch.test.d.ts +0 -1
  38. package/module/es5/tests/unit/Array/binarySearch.test.js +0 -32
  39. package/module/es5/tests/unit/Array/checkFlagAlignment.test.d.ts +0 -1
  40. package/module/es5/tests/unit/Array/checkFlagAlignment.test.js +0 -206
  41. package/module/es5/tests/unit/Array/chunk.test.d.ts +0 -1
  42. package/module/es5/tests/unit/Array/chunk.test.js +0 -51
  43. package/module/es5/tests/unit/Array/compact.test.d.ts +0 -1
  44. package/module/es5/tests/unit/Array/compact.test.js +0 -53
  45. package/module/es5/tests/unit/Array/compareFunctionDefault.test.d.ts +0 -1
  46. package/module/es5/tests/unit/Array/compareFunctionDefault.test.js +0 -29
  47. package/module/es5/tests/unit/Array/drop.test.d.ts +0 -1
  48. package/module/es5/tests/unit/Array/drop.test.js +0 -84
  49. package/module/es5/tests/unit/Array/dualPivotQuickSort.test.d.ts +0 -1
  50. package/module/es5/tests/unit/Array/dualPivotQuickSort.test.js +0 -87
  51. package/module/es5/tests/unit/Array/first.test.d.ts +0 -1
  52. package/module/es5/tests/unit/Array/first.test.js +0 -28
  53. package/module/es5/tests/unit/Array/generateNumberArray.test.d.ts +0 -1
  54. package/module/es5/tests/unit/Array/generateNumberArray.test.js +0 -34
  55. package/module/es5/tests/unit/Array/getArraysCommon.test.d.ts +0 -1
  56. package/module/es5/tests/unit/Array/getArraysCommon.test.js +0 -40
  57. package/module/es5/tests/unit/Array/getArraysDiff.test.d.ts +0 -1
  58. package/module/es5/tests/unit/Array/getArraysDiff.test.js +0 -99
  59. package/module/es5/tests/unit/Array/groupBy.test.d.ts +0 -1
  60. package/module/es5/tests/unit/Array/groupBy.test.js +0 -87
  61. package/module/es5/tests/unit/Array/insertionSort.test.d.ts +0 -1
  62. package/module/es5/tests/unit/Array/insertionSort.test.js +0 -37
  63. package/module/es5/tests/unit/Array/mergeSort.test.d.ts +0 -1
  64. package/module/es5/tests/unit/Array/mergeSort.test.js +0 -49
  65. package/module/es5/tests/unit/Array/pop.test.d.ts +0 -1
  66. package/module/es5/tests/unit/Array/pop.test.js +0 -50
  67. package/module/es5/tests/unit/Array/quickSort.test.d.ts +0 -1
  68. package/module/es5/tests/unit/Array/quickSort.test.js +0 -118
  69. package/module/es5/tests/unit/Array/randomSelect.test.d.ts +0 -1
  70. package/module/es5/tests/unit/Array/randomSelect.test.js +0 -51
  71. package/module/es5/tests/unit/Array/range.test.d.ts +0 -1
  72. package/module/es5/tests/unit/Array/range.test.js +0 -42
  73. package/module/es5/tests/unit/Array/shuffle.test.d.ts +0 -1
  74. package/module/es5/tests/unit/Array/shuffle.test.js +0 -84
  75. package/module/es5/tests/unit/Array/shuffle2DArray.test.d.ts +0 -1
  76. package/module/es5/tests/unit/Array/shuffle2DArray.test.js +0 -90
  77. package/module/es5/tests/unit/Array/sum.test.d.ts +0 -1
  78. package/module/es5/tests/unit/Array/sum.test.js +0 -44
  79. package/module/es5/tests/unit/Array/timSort.test.d.ts +0 -1
  80. package/module/es5/tests/unit/Array/timSort.test.js +0 -128
  81. package/module/es5/tests/unit/Array/zip.test.d.ts +0 -1
  82. package/module/es5/tests/unit/Array/zip.test.js +0 -69
  83. package/module/es5/tests/unit/Array/zipLongest.test.d.ts +0 -1
  84. package/module/es5/tests/unit/Array/zipLongest.test.js +0 -74
  85. package/module/es5/tests/unit/Color/cmykToRgba.test.d.ts +0 -1
  86. package/module/es5/tests/unit/Color/cmykToRgba.test.js +0 -58
  87. package/module/es5/tests/unit/Color/hexaToRgba.test.d.ts +0 -1
  88. package/module/es5/tests/unit/Color/hexaToRgba.test.js +0 -115
  89. package/module/es5/tests/unit/Color/hslaToRgba.test.d.ts +0 -1
  90. package/module/es5/tests/unit/Color/hslaToRgba.test.js +0 -141
  91. package/module/es5/tests/unit/Color/rgbaToCmyk.test.d.ts +0 -1
  92. package/module/es5/tests/unit/Color/rgbaToCmyk.test.js +0 -139
  93. package/module/es5/tests/unit/Color/rgbaToHexA.test.d.ts +0 -1
  94. package/module/es5/tests/unit/Color/rgbaToHexA.test.js +0 -114
  95. package/module/es5/tests/unit/Color/rgbaToHsla.test.d.ts +0 -1
  96. package/module/es5/tests/unit/Color/rgbaToHsla.test.js +0 -190
  97. package/module/es5/tests/unit/Consts/clock.test.d.ts +0 -1
  98. package/module/es5/tests/unit/Consts/clock.test.js +0 -71
  99. package/module/es5/tests/unit/Consts/httpClientErrorStatus.test.d.ts +0 -1
  100. package/module/es5/tests/unit/Consts/httpClientErrorStatus.test.js +0 -33
  101. package/module/es5/tests/unit/Consts/httpInformationalStatus.test.d.ts +0 -1
  102. package/module/es5/tests/unit/Consts/httpInformationalStatus.test.js +0 -13
  103. package/module/es5/tests/unit/Consts/httpRedirectionStatus.test.d.ts +0 -1
  104. package/module/es5/tests/unit/Consts/httpRedirectionStatus.test.js +0 -16
  105. package/module/es5/tests/unit/Consts/httpServerErrorStatus.test.d.ts +0 -1
  106. package/module/es5/tests/unit/Consts/httpServerErrorStatus.test.js +0 -15
  107. package/module/es5/tests/unit/Consts/httpStatus.test.d.ts +0 -1
  108. package/module/es5/tests/unit/Consts/httpStatus.test.js +0 -82
  109. package/module/es5/tests/unit/Consts/httpSuccessStatus.test.d.ts +0 -1
  110. package/module/es5/tests/unit/Consts/httpSuccessStatus.test.js +0 -16
  111. package/module/es5/tests/unit/Date/birthday.test.d.ts +0 -1
  112. package/module/es5/tests/unit/Date/birthday.test.js +0 -31
  113. package/module/es5/tests/unit/Date/dateRange.test.d.ts +0 -1
  114. package/module/es5/tests/unit/Date/dateRange.test.js +0 -40
  115. package/module/es5/tests/unit/Date/dayOfWeek.test.d.ts +0 -1
  116. package/module/es5/tests/unit/Date/dayOfWeek.test.js +0 -39
  117. package/module/es5/tests/unit/Date/deleteSpace.test.d.ts +0 -1
  118. package/module/es5/tests/unit/Date/deleteSpace.test.js +0 -35
  119. package/module/es5/tests/unit/Date/format.test.d.ts +0 -1
  120. package/module/es5/tests/unit/Date/format.test.js +0 -50
  121. package/module/es5/tests/unit/Date/getDay.test.d.ts +0 -1
  122. package/module/es5/tests/unit/Date/getDay.test.js +0 -40
  123. package/module/es5/tests/unit/Date/getTimezoneOffsetString.test.d.ts +0 -1
  124. package/module/es5/tests/unit/Date/getTimezoneOffsetString.test.js +0 -26
  125. package/module/es5/tests/unit/Date/isLeapYear.test.d.ts +0 -1
  126. package/module/es5/tests/unit/Date/isLeapYear.test.js +0 -30
  127. package/module/es5/tests/unit/Date/new.test.d.ts +0 -1
  128. package/module/es5/tests/unit/Date/new.test.js +0 -39
  129. package/module/es5/tests/unit/Date/now.test.d.ts +0 -1
  130. package/module/es5/tests/unit/Date/now.test.js +0 -42
  131. package/module/es5/tests/unit/Error/safeExecute.test.d.ts +0 -1
  132. package/module/es5/tests/unit/Error/safeExecute.test.js +0 -75
  133. package/module/es5/tests/unit/Function/curry.test.d.ts +0 -1
  134. package/module/es5/tests/unit/Function/curry.test.js +0 -138
  135. package/module/es5/tests/unit/IP/cidrToLong.test.d.ts +0 -1
  136. package/module/es5/tests/unit/IP/cidrToLong.test.js +0 -32
  137. package/module/es5/tests/unit/IP/cidrToSubnetMask.test.d.ts +0 -1
  138. package/module/es5/tests/unit/IP/cidrToSubnetMask.test.js +0 -36
  139. package/module/es5/tests/unit/IP/getIpClass.test.d.ts +0 -1
  140. package/module/es5/tests/unit/IP/getIpClass.test.js +0 -36
  141. package/module/es5/tests/unit/IP/getNetworkAddress.test.d.ts +0 -1
  142. package/module/es5/tests/unit/IP/getNetworkAddress.test.js +0 -40
  143. package/module/es5/tests/unit/IP/ipToBinaryString.test.d.ts +0 -1
  144. package/module/es5/tests/unit/IP/ipToBinaryString.test.js +0 -46
  145. package/module/es5/tests/unit/IP/ipToLong.test.d.ts +0 -1
  146. package/module/es5/tests/unit/IP/ipToLong.test.js +0 -34
  147. package/module/es5/tests/unit/IP/isInRange.test.d.ts +0 -1
  148. package/module/es5/tests/unit/IP/isInRange.test.js +0 -82
  149. package/module/es5/tests/unit/IP/isPrivateIp.test.d.ts +0 -1
  150. package/module/es5/tests/unit/IP/isPrivateIp.test.js +0 -26
  151. package/module/es5/tests/unit/IP/longToIp.test.d.ts +0 -1
  152. package/module/es5/tests/unit/IP/longToIp.test.js +0 -39
  153. package/module/es5/tests/unit/IP/subnetMaskToCidr.test.d.ts +0 -1
  154. package/module/es5/tests/unit/IP/subnetMaskToCidr.test.js +0 -41
  155. package/module/es5/tests/unit/Math/addition.test.d.ts +0 -1
  156. package/module/es5/tests/unit/Math/addition.test.js +0 -79
  157. package/module/es5/tests/unit/Math/average.test.d.ts +0 -1
  158. package/module/es5/tests/unit/Math/average.test.js +0 -48
  159. package/module/es5/tests/unit/Math/bitwise.test.d.ts +0 -1
  160. package/module/es5/tests/unit/Math/bitwise.test.js +0 -62
  161. package/module/es5/tests/unit/Math/calculator/calculator.test.d.ts +0 -1
  162. package/module/es5/tests/unit/Math/calculator/calculator.test.js +0 -76
  163. package/module/es5/tests/unit/Math/calculator/calculatorInitialization.test.d.ts +0 -1
  164. package/module/es5/tests/unit/Math/calculator/calculatorInitialization.test.js +0 -21
  165. package/module/es5/tests/unit/Math/calculator/convertCurrency.test.d.ts +0 -1
  166. package/module/es5/tests/unit/Math/calculator/convertCurrency.test.js +0 -40
  167. package/module/es5/tests/unit/Math/calculator/literalExpression.test.d.ts +0 -1
  168. package/module/es5/tests/unit/Math/calculator/literalExpression.test.js +0 -51
  169. package/module/es5/tests/unit/Math/degToRad.test.d.ts +0 -1
  170. package/module/es5/tests/unit/Math/degToRad.test.js +0 -50
  171. package/module/es5/tests/unit/Math/deviationValue.test.d.ts +0 -1
  172. package/module/es5/tests/unit/Math/deviationValue.test.js +0 -30
  173. package/module/es5/tests/unit/Math/division.test.d.ts +0 -1
  174. package/module/es5/tests/unit/Math/division.test.js +0 -81
  175. package/module/es5/tests/unit/Math/factorial.test.d.ts +0 -1
  176. package/module/es5/tests/unit/Math/factorial.test.js +0 -26
  177. package/module/es5/tests/unit/Math/factorize.test.d.ts +0 -1
  178. package/module/es5/tests/unit/Math/factorize.test.js +0 -38
  179. package/module/es5/tests/unit/Math/flexibleNumberConversion.test.d.ts +0 -1
  180. package/module/es5/tests/unit/Math/flexibleNumberConversion.test.js +0 -195
  181. package/module/es5/tests/unit/Math/gcd.test.d.ts +0 -1
  182. package/module/es5/tests/unit/Math/gcd.test.js +0 -35
  183. package/module/es5/tests/unit/Math/getDecimalLength.test.d.ts +0 -1
  184. package/module/es5/tests/unit/Math/getDecimalLength.test.js +0 -44
  185. package/module/es5/tests/unit/Math/lcm.test.d.ts +0 -1
  186. package/module/es5/tests/unit/Math/lcm.test.js +0 -43
  187. package/module/es5/tests/unit/Math/linearCongruentialGenerator.test.d.ts +0 -1
  188. package/module/es5/tests/unit/Math/linearCongruentialGenerator.test.js +0 -25
  189. package/module/es5/tests/unit/Math/mathConverter.test.d.ts +0 -1
  190. package/module/es5/tests/unit/Math/mathConverter.test.js +0 -37
  191. package/module/es5/tests/unit/Math/mathSeparator.test.d.ts +0 -1
  192. package/module/es5/tests/unit/Math/mathSeparator.test.js +0 -59
  193. package/module/es5/tests/unit/Math/max.test.d.ts +0 -1
  194. package/module/es5/tests/unit/Math/max.test.js +0 -22
  195. package/module/es5/tests/unit/Math/median.test.d.ts +0 -1
  196. package/module/es5/tests/unit/Math/median.test.js +0 -17
  197. package/module/es5/tests/unit/Math/min.test.d.ts +0 -1
  198. package/module/es5/tests/unit/Math/min.test.js +0 -22
  199. package/module/es5/tests/unit/Math/multiples.test.d.ts +0 -1
  200. package/module/es5/tests/unit/Math/multiples.test.js +0 -30
  201. package/module/es5/tests/unit/Math/multiplication.test.d.ts +0 -1
  202. package/module/es5/tests/unit/Math/multiplication.test.js +0 -48
  203. package/module/es5/tests/unit/Math/nCr.test.d.ts +0 -1
  204. package/module/es5/tests/unit/Math/nCr.test.js +0 -34
  205. package/module/es5/tests/unit/Math/nHr.test.d.ts +0 -1
  206. package/module/es5/tests/unit/Math/nHr.test.js +0 -35
  207. package/module/es5/tests/unit/Math/nPr.test.d.ts +0 -1
  208. package/module/es5/tests/unit/Math/nPr.test.js +0 -38
  209. package/module/es5/tests/unit/Math/primeFactorization.test.d.ts +0 -1
  210. package/module/es5/tests/unit/Math/primeFactorization.test.js +0 -84
  211. package/module/es5/tests/unit/Math/quotient.test.d.ts +0 -1
  212. package/module/es5/tests/unit/Math/quotient.test.js +0 -36
  213. package/module/es5/tests/unit/Math/radToDeg.test.d.ts +0 -1
  214. package/module/es5/tests/unit/Math/radToDeg.test.js +0 -50
  215. package/module/es5/tests/unit/Math/random.test.d.ts +0 -1
  216. package/module/es5/tests/unit/Math/random.test.js +0 -61
  217. package/module/es5/tests/unit/Math/reduce.test.d.ts +0 -1
  218. package/module/es5/tests/unit/Math/reduce.test.js +0 -93
  219. package/module/es5/tests/unit/Math/repeatedTrial.test.d.ts +0 -1
  220. package/module/es5/tests/unit/Math/repeatedTrial.test.js +0 -39
  221. package/module/es5/tests/unit/Math/roundOf.test.d.ts +0 -1
  222. package/module/es5/tests/unit/Math/roundOf.test.js +0 -40
  223. package/module/es5/tests/unit/Math/solveEquation.test.d.ts +0 -1
  224. package/module/es5/tests/unit/Math/solveEquation.test.js +0 -24
  225. package/module/es5/tests/unit/Math/standardDeviation.test.d.ts +0 -1
  226. package/module/es5/tests/unit/Math/standardDeviation.test.js +0 -23
  227. package/module/es5/tests/unit/Math/subtract.test.d.ts +0 -1
  228. package/module/es5/tests/unit/Math/subtract.test.js +0 -46
  229. package/module/es5/tests/unit/Math/toBaseN.test.d.ts +0 -1
  230. package/module/es5/tests/unit/Math/toBaseN.test.js +0 -40
  231. package/module/es5/tests/unit/Math/toCelsius.test.d.ts +0 -1
  232. package/module/es5/tests/unit/Math/toCelsius.test.js +0 -18
  233. package/module/es5/tests/unit/Math/toKelvin.test.d.ts +0 -1
  234. package/module/es5/tests/unit/Math/toKelvin.test.js +0 -18
  235. package/module/es5/tests/unit/Math/uuidv7.test.d.ts +0 -1
  236. package/module/es5/tests/unit/Math/uuidv7.test.js +0 -33
  237. package/module/es5/tests/unit/Math/valueSwap.test.d.ts +0 -1
  238. package/module/es5/tests/unit/Math/valueSwap.test.js +0 -28
  239. package/module/es5/tests/unit/Math/xoshiro256.test.d.ts +0 -1
  240. package/module/es5/tests/unit/Math/xoshiro256.test.js +0 -33
  241. package/module/es5/tests/unit/Object/has.test.d.ts +0 -1
  242. package/module/es5/tests/unit/Object/has.test.js +0 -60
  243. package/module/es5/tests/unit/Object/keyBy.test.d.ts +0 -1
  244. package/module/es5/tests/unit/Object/keyBy.test.js +0 -120
  245. package/module/es5/tests/unit/Object/pick.test.d.ts +0 -1
  246. package/module/es5/tests/unit/Object/pick.test.js +0 -109
  247. package/module/es5/tests/unit/Object/pickDeep.test.d.ts +0 -1
  248. package/module/es5/tests/unit/Object/pickDeep.test.js +0 -222
  249. package/module/es5/tests/unit/Simple/Array/quickSortSimple.test.d.ts +0 -1
  250. package/module/es5/tests/unit/Simple/Array/quickSortSimple.test.js +0 -18
  251. package/module/es5/tests/unit/Simple/Date/dayOfWeekSimple.test.d.ts +0 -1
  252. package/module/es5/tests/unit/Simple/Date/dayOfWeekSimple.test.js +0 -58
  253. package/module/es5/tests/unit/Simple/Math/deviationValueSimple.test.d.ts +0 -1
  254. package/module/es5/tests/unit/Simple/Math/deviationValueSimple.test.js +0 -43
  255. package/module/es5/tests/unit/String/deleteSpaces.test.d.ts +0 -1
  256. package/module/es5/tests/unit/String/deleteSpaces.test.js +0 -22
  257. package/module/es5/tests/unit/String/formatString.test.d.ts +0 -1
  258. package/module/es5/tests/unit/String/formatString.test.js +0 -47
  259. package/module/es5/tests/unit/String/fromBase64.test.d.ts +0 -1
  260. package/module/es5/tests/unit/String/fromBase64.test.js +0 -37
  261. package/module/es5/tests/unit/String/hasNoLetters.test.d.ts +0 -1
  262. package/module/es5/tests/unit/String/hasNoLetters.test.js +0 -29
  263. package/module/es5/tests/unit/String/padEnd.test.d.ts +0 -1
  264. package/module/es5/tests/unit/String/padEnd.test.js +0 -22
  265. package/module/es5/tests/unit/String/padStart.test.d.ts +0 -1
  266. package/module/es5/tests/unit/String/padStart.test.js +0 -40
  267. package/module/es5/tests/unit/String/randomString.test.d.ts +0 -1
  268. package/module/es5/tests/unit/String/randomString.test.js +0 -21
  269. package/module/es5/tests/unit/String/randomStringInitialization.test.d.ts +0 -1
  270. package/module/es5/tests/unit/String/randomStringInitialization.test.js +0 -25
  271. package/module/es5/tests/unit/String/reverseString.test.d.ts +0 -1
  272. package/module/es5/tests/unit/String/reverseString.test.js +0 -35
  273. package/module/es5/tests/unit/String/toBase64.test.d.ts +0 -1
  274. package/module/es5/tests/unit/String/toBase64.test.js +0 -20
  275. package/module/es5/tests/unit/String/toHalfWidth.test.d.ts +0 -1
  276. package/module/es5/tests/unit/String/toHalfWidth.test.js +0 -16
  277. package/module/es5/tests/unit/String/trimCharacters.test.d.ts +0 -1
  278. package/module/es5/tests/unit/String/trimCharacters.test.js +0 -17
  279. package/module/es5/tests/unit/String/trimEndCharacters.test.d.ts +0 -1
  280. package/module/es5/tests/unit/String/trimEndCharacters.test.js +0 -33
  281. package/module/es5/tests/unit/String/trimStartCharacters.test.d.ts +0 -1
  282. package/module/es5/tests/unit/String/trimStartCharacters.test.js +0 -33
  283. package/module/es5/tests/unit/Time/convertTime.test.d.ts +0 -1
  284. package/module/es5/tests/unit/Time/convertTime.test.js +0 -135
  285. package/module/es5/tests/unit/Time/normalizeTimeUnit.test.d.ts +0 -1
  286. package/module/es5/tests/unit/Time/normalizeTimeUnit.test.js +0 -29
  287. package/module/es5/tests/unit/Tool/createPipeline.test.d.ts +0 -1
  288. package/module/es5/tests/unit/Tool/createPipeline.test.js +0 -184
  289. package/module/es5/tests/unit/Tool/parseJson.test.d.ts +0 -1
  290. package/module/es5/tests/unit/Tool/parseJson.test.js +0 -46
  291. package/module/es5/tests/unit/Tool/pipe.test.d.ts +0 -1
  292. package/module/es5/tests/unit/Tool/pipe.test.js +0 -445
  293. package/module/es5/tests/unit/UA/extractBrowserFromUserAgent.test.d.ts +0 -1
  294. package/module/es5/tests/unit/UA/extractBrowserFromUserAgent.test.js +0 -47
  295. package/module/es5/tests/unit/UA/extractDeviceFromUserAgent.test.d.ts +0 -1
  296. package/module/es5/tests/unit/UA/extractDeviceFromUserAgent.test.js +0 -55
  297. package/module/es5/tests/unit/UA/extractOsFromUserAgent.test.d.ts +0 -1
  298. package/module/es5/tests/unit/UA/extractOsFromUserAgent.test.js +0 -57
  299. package/module/es5/tests/unit/UA/parseUserAgent.test.d.ts +0 -1
  300. package/module/es5/tests/unit/UA/parseUserAgent.test.js +0 -95
  301. package/module/es5/tests/unit/Unit/unitConverterInitialization.test.d.ts +0 -1
  302. package/module/es5/tests/unit/Unit/unitConverterInitialization.test.js +0 -40
  303. package/module/es5/tests/unit/Validate/array/core.test.d.ts +0 -1
  304. package/module/es5/tests/unit/Validate/array/core.test.js +0 -86
  305. package/module/es5/tests/unit/Validate/boolean/core.test.d.ts +0 -1
  306. package/module/es5/tests/unit/Validate/boolean/core.test.js +0 -29
  307. package/module/es5/tests/unit/Validate/core/core.test.d.ts +0 -1
  308. package/module/es5/tests/unit/Validate/core/core.test.js +0 -87
  309. package/module/es5/tests/unit/Validate/isArray.test.d.ts +0 -1
  310. package/module/es5/tests/unit/Validate/isArray.test.js +0 -36
  311. package/module/es5/tests/unit/Validate/isDictionaryObject.test.d.ts +0 -1
  312. package/module/es5/tests/unit/Validate/isDictionaryObject.test.js +0 -62
  313. package/module/es5/tests/unit/Validate/isDouble.test.d.ts +0 -1
  314. package/module/es5/tests/unit/Validate/isDouble.test.js +0 -47
  315. package/module/es5/tests/unit/Validate/isEqual.test.d.ts +0 -1
  316. package/module/es5/tests/unit/Validate/isEqual.test.js +0 -74
  317. package/module/es5/tests/unit/Validate/isNotEmpty.test.d.ts +0 -1
  318. package/module/es5/tests/unit/Validate/isNotEmpty.test.js +0 -43
  319. package/module/es5/tests/unit/Validate/isNumber.test.d.ts +0 -1
  320. package/module/es5/tests/unit/Validate/isNumber.test.js +0 -77
  321. package/module/es5/tests/unit/Validate/isPerfectSquare.test.d.ts +0 -1
  322. package/module/es5/tests/unit/Validate/isPerfectSquare.test.js +0 -27
  323. package/module/es5/tests/unit/Validate/isPrimeNumber.test.d.ts +0 -1
  324. package/module/es5/tests/unit/Validate/isPrimeNumber.test.js +0 -51
  325. package/module/es5/tests/unit/Validate/isValueNaN.test.d.ts +0 -1
  326. package/module/es5/tests/unit/Validate/isValueNaN.test.js +0 -54
  327. package/module/es5/tests/unit/Validate/number/core.test.d.ts +0 -1
  328. package/module/es5/tests/unit/Validate/number/core.test.js +0 -36
  329. package/module/es5/tests/unit/Validate/number/double.test.d.ts +0 -1
  330. package/module/es5/tests/unit/Validate/number/double.test.js +0 -23
  331. package/module/es5/tests/unit/Validate/number/even.test.d.ts +0 -1
  332. package/module/es5/tests/unit/Validate/number/even.test.js +0 -23
  333. package/module/es5/tests/unit/Validate/number/maxValue.test.d.ts +0 -1
  334. package/module/es5/tests/unit/Validate/number/maxValue.test.js +0 -20
  335. package/module/es5/tests/unit/Validate/number/minValue.test.d.ts +0 -1
  336. package/module/es5/tests/unit/Validate/number/minValue.test.js +0 -20
  337. package/module/es5/tests/unit/Validate/number/odd.test.d.ts +0 -1
  338. package/module/es5/tests/unit/Validate/number/odd.test.js +0 -23
  339. package/module/es5/tests/unit/Validate/number/prime.test.d.ts +0 -1
  340. package/module/es5/tests/unit/Validate/number/prime.test.js +0 -25
  341. package/module/es5/tests/unit/Validate/object/core.test.d.ts +0 -1
  342. package/module/es5/tests/unit/Validate/object/core.test.js +0 -79
  343. package/module/es5/tests/unit/Validate/string/core.test.d.ts +0 -1
  344. package/module/es5/tests/unit/Validate/string/core.test.js +0 -27
  345. package/module/es5/tests/unit/Validate/string/email.test.d.ts +0 -1
  346. package/module/es5/tests/unit/Validate/string/email.test.js +0 -21
  347. package/module/es5/tests/unit/Validate/string/length.test.d.ts +0 -1
  348. package/module/es5/tests/unit/Validate/string/length.test.js +0 -18
  349. package/module/es5/tests/unit/Validate/string/maxLength.test.d.ts +0 -1
  350. package/module/es5/tests/unit/Validate/string/maxLength.test.js +0 -18
  351. package/module/es5/tests/unit/Validate/string/minLength.test.d.ts +0 -1
  352. package/module/es5/tests/unit/Validate/string/minLength.test.js +0 -18
  353. package/module/es5/tests/unit/Validate/string/numberString.test.d.ts +0 -1
  354. package/module/es5/tests/unit/Validate/string/numberString.test.js +0 -22
  355. package/module/es5/tests/unit/Validate/string/regexMatch.test.d.ts +0 -1
  356. package/module/es5/tests/unit/Validate/string/regexMatch.test.js +0 -29
  357. package/module/es5/tests/unit/Validate/string/uuid.test.d.ts +0 -1
  358. package/module/es5/tests/unit/Validate/string/uuid.test.js +0 -72
  359. package/module/es5/tests/unit/types/arrayType.test.d.ts +0 -1
  360. package/module/es5/tests/unit/types/arrayType.test.js +0 -11
  361. package/module/es5/tests/unit/types/clockType.test.d.ts +0 -1
  362. package/module/es5/tests/unit/types/clockType.test.js +0 -37
@@ -1,25 +0,0 @@
1
- "use strict";
2
-
3
- var _linearCongruentialGenerator = require("@/Math/linearCongruentialGenerator");
4
- describe("linearCongruentialGenerator", function () {
5
- it("should generate random numbers", function () {
6
- var result = (0, _linearCongruentialGenerator.linearCongruentialGenerator)(8, 13, 3, 5);
7
- expect(result).toBeGreaterThanOrEqual(0);
8
- expect(result).toBe(3);
9
- });
10
- it("should generate the same sequence for the same seed", function () {
11
- var result1 = (0, _linearCongruentialGenerator.linearCongruentialGenerator)(12345);
12
- var result2 = (0, _linearCongruentialGenerator.linearCongruentialGenerator)(12345);
13
- expect(result1).toBe(result2);
14
- });
15
- it("should generate different sequences for different seeds", function () {
16
- var result1 = (0, _linearCongruentialGenerator.linearCongruentialGenerator)(12345);
17
- var result2 = (0, _linearCongruentialGenerator.linearCongruentialGenerator)(54321);
18
- expect(result1).not.toBe(result2);
19
- });
20
- it("should generate numbers with custom parameters", function () {
21
- var result1 = (0, _linearCongruentialGenerator.linearCongruentialGenerator)(12345, Math.pow(2, 31), 1103515245, 12345);
22
- expect(result1).toBeGreaterThanOrEqual(0);
23
- expect(result1).toBe(1406932606);
24
- });
25
- });
@@ -1 +0,0 @@
1
- export {};
@@ -1,37 +0,0 @@
1
- "use strict";
2
-
3
- var _mathConverter = require("@/Math/mathConverter");
4
- describe("mathConverter function", function () {
5
- // Test multiplication conversion
6
- test("should convert multiplication", function () {
7
- expect((0, _mathConverter.mathConverter)("1250*1250")).toBe("1500*1000+400*100+200*100+50*50");
8
- expect((0, _mathConverter.mathConverter)("1350*1350")).toBe("1700*1000+600*100+400*100+200*100+50*50");
9
- expect((0, _mathConverter.mathConverter)("1550*1550")).toBe("2100*1000+1000*100+800*100+600*100+400*100+200*100+50*50");
10
- });
11
-
12
- // Test exponentiation conversion
13
- test("should convert exponentiation", function () {
14
- expect((0, _mathConverter.mathConverter)("1250^2")).toBe("1500*1000+400*100+200*100+50*50");
15
- expect((0, _mathConverter.mathConverter)("1350^2")).toBe("1700*1000+600*100+400*100+200*100+50*50");
16
- });
17
-
18
- // Test cases where no conversion is needed
19
- test("should not convert when unnecessary", function () {
20
- expect((0, _mathConverter.mathConverter)("1250")).toBe("1250");
21
- });
22
-
23
- // Test cases with multiple operands
24
- test("should handle multiple operands", function () {
25
- expect((0, _mathConverter.mathConverter)("1250+1250")).toBe("1250+1250");
26
- });
27
-
28
- // Test invalid inputs
29
- test("should handle invalid input", function () {
30
- expect((0, _mathConverter.mathConverter)("abc")).toBe("abc");
31
- });
32
-
33
- // Test when primary value is missing
34
- test("should handle missing primary value", function () {
35
- expect((0, _mathConverter.mathConverter)("0*0")).toBe("0*0");
36
- });
37
- });
@@ -1 +0,0 @@
1
- export {};
@@ -1,59 +0,0 @@
1
- "use strict";
2
-
3
- var _mathSeparator = require("@/Math/mathSeparator");
4
- describe("mathSeparator", function () {
5
- // Test number type inputs
6
- it("should handle single digit numbers", function () {
7
- expect((0, _mathSeparator.mathSeparator)(5)).toEqual([5, 0]);
8
- });
9
- it("should handle multi-digit numbers", function () {
10
- expect((0, _mathSeparator.mathSeparator)(1250)).toEqual([1000, 250]);
11
- });
12
-
13
- // Test string number inputs
14
- it("should handle single digit string numbers", function () {
15
- expect((0, _mathSeparator.mathSeparator)("5")).toEqual([5, 0]);
16
- });
17
- it("should handle multi-digit string numbers", function () {
18
- expect((0, _mathSeparator.mathSeparator)("1250")).toEqual([1000, 250]);
19
- });
20
-
21
- // Test zero cases
22
- it("should handle 0", function () {
23
- expect((0, _mathSeparator.mathSeparator)(0)).toEqual([0, 0]);
24
- });
25
- it('should handle "0"', function () {
26
- expect((0, _mathSeparator.mathSeparator)("0")).toEqual([0, 0]);
27
- });
28
-
29
- // Test invalid inputs
30
- it("should return [0, 0] for non-number input", function () {
31
- expect((0, _mathSeparator.mathSeparator)("abc")).toEqual([0, 0]);
32
- });
33
-
34
- // Test decimal numbers
35
- it("should handle decimal numbers", function () {
36
- expect((0, _mathSeparator.mathSeparator)(12.5)).toEqual([10, 2.5]);
37
- });
38
- it("should handle decimal string numbers", function () {
39
- expect((0, _mathSeparator.mathSeparator)("12.5")).toEqual([10, 2.5]);
40
- });
41
-
42
- // Test edge cases
43
- it("should handle negative numbers", function () {
44
- expect((0, _mathSeparator.mathSeparator)(-1250)).toEqual([10000, -11250]);
45
- expect((0, _mathSeparator.mathSeparator)("-1250.5")).toEqual([10000, -11249.5]);
46
- });
47
- it("should handle very large numbers", function () {
48
- expect((0, _mathSeparator.mathSeparator)(1000000)).toEqual([1000000, 0]);
49
- expect((0, _mathSeparator.mathSeparator)("1000000.123")).toEqual([1000000, 0.123]);
50
- });
51
- it("should handle special numeric strings", function () {
52
- // Note: "1e5" is treated as a regular string "1e5"
53
- expect((0, _mathSeparator.mathSeparator)("1e5")).toEqual([100, 99900]);
54
- // Note: isNumber treats "0xFF" as a valid number, so it's processed accordingly
55
- expect((0, _mathSeparator.mathSeparator)("0xFF")).toEqual([1000, -745]);
56
- // Note: "Infinity" is not a valid number in this context
57
- expect((0, _mathSeparator.mathSeparator)("Infinity")).toEqual([0, 0]);
58
- });
59
- });
@@ -1 +0,0 @@
1
- export {};
@@ -1,22 +0,0 @@
1
- "use strict";
2
-
3
- var _max = require("@/Math/max");
4
- describe("max function", function () {
5
- it("should return the maximum value", function () {
6
- expect((0, _max.max)(1, 2, 3)).toBe(3);
7
- expect((0, _max.max)(3, 2, 1)).toBe(3);
8
- expect((0, _max.max)(-1, -2, -3)).toBe(-1);
9
- });
10
- it("should remove duplicates before finding maximum", function () {
11
- expect((0, _max.max)(1, 1, 1)).toBe(1);
12
- expect((0, _max.max)(1, 2, 2, 3, 3)).toBe(3);
13
- });
14
- it("should handle single value", function () {
15
- expect((0, _max.max)(5)).toBe(5);
16
- expect((0, _max.max)(-5)).toBe(-5);
17
- });
18
- it("should handle decimal numbers", function () {
19
- expect((0, _max.max)(1.5, 2.5, 1.1)).toBe(2.5);
20
- expect((0, _max.max)(-1.5, -2.5, -1.1)).toBe(-1.1);
21
- });
22
- });
@@ -1 +0,0 @@
1
- export {};
@@ -1,17 +0,0 @@
1
- "use strict";
2
-
3
- var _median = require("@/Math/median");
4
- describe("median", function () {
5
- it("should calculate median of array with even number of elements", function () {
6
- expect((0, _median.median)([1, 2, 3, 4])).toBe(2.5);
7
- });
8
- it("should calculate median of array with odd number of elements", function () {
9
- expect((0, _median.median)([1, 3, 3, 6, 7, 8, 9])).toBe(6);
10
- });
11
- it("should return NaN for empty array", function () {
12
- expect((0, _median.median)([])).toBeNaN();
13
- });
14
- it("should calculate median of unsorted array", function () {
15
- expect((0, _median.median)([9, 1, 5, 3, 6])).toBe(5);
16
- });
17
- });
@@ -1 +0,0 @@
1
- export {};
@@ -1,22 +0,0 @@
1
- "use strict";
2
-
3
- var _min = require("@/Math/min");
4
- describe("min function", function () {
5
- it("should return the minimum value", function () {
6
- expect((0, _min.min)(1, 2, 3)).toBe(1);
7
- expect((0, _min.min)(3, 2, 1)).toBe(1);
8
- expect((0, _min.min)(-1, -2, -3)).toBe(-3);
9
- });
10
- it("should remove duplicates before finding minimum", function () {
11
- expect((0, _min.min)(1, 1, 1)).toBe(1);
12
- expect((0, _min.min)(1, 2, 2, 3, 3)).toBe(1);
13
- });
14
- it("should handle single value", function () {
15
- expect((0, _min.min)(5)).toBe(5);
16
- expect((0, _min.min)(-5)).toBe(-5);
17
- });
18
- it("should handle decimal numbers", function () {
19
- expect((0, _min.min)(1.5, 2.5, 1.1)).toBe(1.1);
20
- expect((0, _min.min)(-1.5, -2.5, -1.1)).toBe(-2.5);
21
- });
22
- });
@@ -1 +0,0 @@
1
- export {};
@@ -1,30 +0,0 @@
1
- "use strict";
2
-
3
- var _multiples = require("@/Math/multiples");
4
- describe("multiples function", function () {
5
- it("should generate multiples of 1", function () {
6
- expect((0, _multiples.multiples)(1, 1)).toEqual([1]);
7
- expect((0, _multiples.multiples)(1, 3)).toEqual([1, 2, 3]);
8
- expect((0, _multiples.multiples)(1, 5)).toEqual([1, 2, 3, 4, 5]);
9
- });
10
- it("should generate multiples of 2", function () {
11
- expect((0, _multiples.multiples)(2, 1)).toEqual([2]);
12
- expect((0, _multiples.multiples)(2, 3)).toEqual([2, 4, 6]);
13
- expect((0, _multiples.multiples)(2, 5)).toEqual([2, 4, 6, 8, 10]);
14
- });
15
- it("should generate multiples of negative numbers", function () {
16
- expect((0, _multiples.multiples)(-2, 3)).toEqual([-2, -4, -6]);
17
- expect((0, _multiples.multiples)(-3, 4)).toEqual([-3, -6, -9, -12]);
18
- });
19
- it("should handle zero as base number", function () {
20
- expect((0, _multiples.multiples)(0, 3)).toEqual([0, 0, 0]);
21
- });
22
- it("should return empty array for zero count", function () {
23
- expect((0, _multiples.multiples)(2, 0)).toEqual([]);
24
- expect((0, _multiples.multiples)(-2, 0)).toEqual([]);
25
- });
26
- it("should handle decimal numbers", function () {
27
- expect((0, _multiples.multiples)(0.5, 3)).toEqual([0.5, 1, 1.5]);
28
- expect((0, _multiples.multiples)(1.5, 3)).toEqual([1.5, 3, 4.5]);
29
- });
30
- });
@@ -1 +0,0 @@
1
- export {};
@@ -1,48 +0,0 @@
1
- "use strict";
2
-
3
- var _multiplication = require("@/Math/multiplication");
4
- describe("multiplication function", function () {
5
- describe("basic integer multiplication", function () {
6
- it("should multiply two positive integers", function () {
7
- expect((0, _multiplication.multiplication)(2, 3)).toBe(6);
8
- expect((0, _multiplication.multiplication)(10, 20)).toBe(200);
9
- });
10
- it("should multiply multiple positive integers", function () {
11
- expect((0, _multiplication.multiplication)(2, 3, 4)).toBe(24);
12
- expect((0, _multiplication.multiplication)(1, 2, 3, 4, 5)).toBe(120);
13
- });
14
- });
15
- describe("decimal number multiplication", function () {
16
- it("should handle decimal multiplication without floating point errors", function () {
17
- expect((0, _multiplication.multiplication)(0.1, 0.2)).toBeCloseTo(0.02);
18
- expect((0, _multiplication.multiplication)(0.1, 0.2, 0.3)).toBeCloseTo(0.006);
19
- expect((0, _multiplication.multiplication)(1.23, 4.56)).toBeCloseTo(5.6088);
20
- });
21
- it("should handle mixed integer and decimal multiplication", function () {
22
- expect((0, _multiplication.multiplication)(0.5, 2)).toBe(1);
23
- expect((0, _multiplication.multiplication)(0.1, 10)).toBe(1);
24
- expect((0, _multiplication.multiplication)(1.5, 2, 3)).toBe(9);
25
- });
26
- });
27
- describe("edge cases", function () {
28
- it("should handle negative numbers", function () {
29
- expect((0, _multiplication.multiplication)(-2, 3)).toBe(-6);
30
- expect((0, _multiplication.multiplication)(2, -3)).toBe(-6);
31
- expect((0, _multiplication.multiplication)(-2, -3)).toBe(6);
32
- });
33
- it("should handle zero", function () {
34
- expect((0, _multiplication.multiplication)(0, 5)).toBe(0);
35
- expect((0, _multiplication.multiplication)(5, 0)).toBe(0);
36
- expect((0, _multiplication.multiplication)(0, 0)).toBe(0);
37
- });
38
- it("should handle multiplication by one", function () {
39
- expect((0, _multiplication.multiplication)(1, 5)).toBe(5);
40
- expect((0, _multiplication.multiplication)(5, 1)).toBe(5);
41
- expect((0, _multiplication.multiplication)(1, 1)).toBe(1);
42
- });
43
- it("should handle very small numbers", function () {
44
- expect((0, _multiplication.multiplication)(0.0001, 0.0001)).toBeCloseTo(0.00000001);
45
- expect((0, _multiplication.multiplication)(0.00001, 0.00001)).toBeCloseTo(0.0000000001);
46
- });
47
- });
48
- });
@@ -1 +0,0 @@
1
- export {};
@@ -1,34 +0,0 @@
1
- "use strict";
2
-
3
- var _nCr = require("@/Math/nCr");
4
- describe("nCr function", function () {
5
- describe("valid combinations", function () {
6
- it("should calculate basic combinations correctly", function () {
7
- expect((0, _nCr.nCr)(5, 2)).toBe(10); // 5C2 = 10
8
- expect((0, _nCr.nCr)(10, 4)).toBe(210); // 10C4 = 210
9
- });
10
- it("should handle choosing all items", function () {
11
- expect((0, _nCr.nCr)(3, 3)).toBe(1); // 3C3 = 1
12
- expect((0, _nCr.nCr)(5, 5)).toBe(1); // 5C5 = 1
13
- });
14
- it("should handle choosing one item", function () {
15
- expect((0, _nCr.nCr)(5, 1)).toBe(5); // 5C1 = 5
16
- expect((0, _nCr.nCr)(10, 1)).toBe(10); // 10C1 = 10
17
- });
18
- it("should calculate larger combinations", function () {
19
- expect((0, _nCr.nCr)(20, 10)).toBe(184756); // 20C10 = 184,756
20
- expect((0, _nCr.nCr)(15, 7)).toBe(6435); // 15C7 = 6,435
21
- });
22
- });
23
- describe("edge cases", function () {
24
- it("should return NaN when n or r is 0", function () {
25
- expect((0, _nCr.nCr)(0, 5)).toBeNaN();
26
- expect((0, _nCr.nCr)(5, 0)).toBeNaN();
27
- expect((0, _nCr.nCr)(0, 0)).toBeNaN();
28
- });
29
- it("should return NaN when n is less than r", function () {
30
- expect((0, _nCr.nCr)(2, 5)).toBeNaN();
31
- expect((0, _nCr.nCr)(3, 4)).toBeNaN();
32
- });
33
- });
34
- });
@@ -1 +0,0 @@
1
- export {};
@@ -1,35 +0,0 @@
1
- "use strict";
2
-
3
- var _nHr = require("@/Math/nHr");
4
- describe("nHr function", function () {
5
- describe("valid combinations with repetition", function () {
6
- it("should calculate basic combinations with repetition correctly", function () {
7
- expect((0, _nHr.nHr)(5, 2)).toBe(15); // 5H2 = 15
8
- expect((0, _nHr.nHr)(3, 3)).toBe(10); // 3H3 = 10
9
- });
10
- it("should handle choosing one item", function () {
11
- expect((0, _nHr.nHr)(3, 1)).toBe(3); // 3H1 = 3
12
- expect((0, _nHr.nHr)(5, 1)).toBe(5); // 5H1 = 5
13
- });
14
- it("should handle choosing same as total items", function () {
15
- expect((0, _nHr.nHr)(2, 2)).toBe(3); // 2H2 = 3
16
- expect((0, _nHr.nHr)(4, 4)).toBe(35); // 4H4 = 35
17
- });
18
- it("should handle larger combinations", function () {
19
- expect((0, _nHr.nHr)(10, 3)).toBe(220); // 10H3 = 220
20
- expect((0, _nHr.nHr)(6, 4)).toBe(126); // 6H4 = 126
21
- });
22
- });
23
- describe("edge cases", function () {
24
- it("should return NaN when n or r is 0", function () {
25
- expect((0, _nHr.nHr)(0, 5)).toBeNaN();
26
- expect((0, _nHr.nHr)(5, 0)).toBeNaN();
27
- expect((0, _nHr.nHr)(0, 0)).toBeNaN();
28
- });
29
- it("should return NaN when n or r is negative", function () {
30
- expect((0, _nHr.nHr)(-1, 5)).toBeNaN();
31
- expect((0, _nHr.nHr)(5, -1)).toBeNaN();
32
- expect((0, _nHr.nHr)(-1, -1)).toBeNaN();
33
- });
34
- });
35
- });
@@ -1 +0,0 @@
1
- export {};
@@ -1,38 +0,0 @@
1
- "use strict";
2
-
3
- var _nPr = require("@/Math/nPr");
4
- describe("nPr function", function () {
5
- describe("valid permutations", function () {
6
- it("should calculate basic permutations correctly", function () {
7
- expect((0, _nPr.nPr)(5, 2)).toBe(20); // 5P2 = 20
8
- expect((0, _nPr.nPr)(10, 4)).toBe(5040); // 10P4 = 5040
9
- });
10
- it("should handle choosing one item", function () {
11
- expect((0, _nPr.nPr)(3, 1)).toBe(3); // 3P1 = 3
12
- expect((0, _nPr.nPr)(5, 1)).toBe(5); // 5P1 = 5
13
- });
14
- it("should handle choosing all items", function () {
15
- expect((0, _nPr.nPr)(3, 3)).toBe(6); // 3P3 = 6 (factorial of 3)
16
- expect((0, _nPr.nPr)(4, 4)).toBe(24); // 4P4 = 24 (factorial of 4)
17
- });
18
- it("should handle larger permutations", function () {
19
- expect((0, _nPr.nPr)(8, 3)).toBe(336); // 8P3 = 336
20
- expect((0, _nPr.nPr)(6, 4)).toBe(360); // 6P4 = 360
21
- });
22
- });
23
- describe("edge cases", function () {
24
- it("should return NaN when n or r is 0", function () {
25
- expect((0, _nPr.nPr)(0, 5)).toBeNaN();
26
- expect((0, _nPr.nPr)(5, 0)).toBeNaN();
27
- expect((0, _nPr.nPr)(0, 0)).toBeNaN();
28
- });
29
- it("should return NaN when n is less than r", function () {
30
- expect((0, _nPr.nPr)(2, 5)).toBeNaN();
31
- expect((0, _nPr.nPr)(3, 4)).toBeNaN();
32
- });
33
- it("should calculate correctly when n equals r", function () {
34
- expect((0, _nPr.nPr)(2, 2)).toBe(2); // 2P2 = 2
35
- expect((0, _nPr.nPr)(5, 5)).toBe(120); // 5P5 = 120
36
- });
37
- });
38
- });
@@ -1,84 +0,0 @@
1
- "use strict";
2
-
3
- var _primeFactorization = require("@/Math/primeFactorization");
4
- describe("primeFactorization function", function () {
5
- describe("basic prime factorization", function () {
6
- it("should factorize numbers with single prime factor", function () {
7
- expect((0, _primeFactorization.primeFactorization)(8)).toEqual([{
8
- number: 2,
9
- count: 3
10
- }]);
11
- expect((0, _primeFactorization.primeFactorization)(27)).toEqual([{
12
- number: 3,
13
- count: 3
14
- }]);
15
- });
16
- it("should factorize numbers with multiple prime factors", function () {
17
- expect((0, _primeFactorization.primeFactorization)(12)).toEqual([{
18
- number: 2,
19
- count: 2
20
- }, {
21
- number: 3,
22
- count: 1
23
- }]);
24
- expect((0, _primeFactorization.primeFactorization)(100)).toEqual([{
25
- number: 2,
26
- count: 2
27
- }, {
28
- number: 5,
29
- count: 2
30
- }]);
31
- });
32
- it("should handle prime numbers", function () {
33
- expect((0, _primeFactorization.primeFactorization)(2)).toEqual([{
34
- number: 2,
35
- count: 1
36
- }]);
37
- expect((0, _primeFactorization.primeFactorization)(17)).toEqual([{
38
- number: 17,
39
- count: 1
40
- }]);
41
- expect((0, _primeFactorization.primeFactorization)(31)).toEqual([{
42
- number: 31,
43
- count: 1
44
- }]);
45
- });
46
- });
47
- describe("edge cases", function () {
48
- it("should handle perfect squares", function () {
49
- expect((0, _primeFactorization.primeFactorization)(25)).toEqual([{
50
- number: 5,
51
- count: 2
52
- }]);
53
- expect((0, _primeFactorization.primeFactorization)(49)).toEqual([{
54
- number: 7,
55
- count: 2
56
- }]);
57
- });
58
- it("should handle numbers with large prime factors", function () {
59
- expect((0, _primeFactorization.primeFactorization)(997)).toEqual([{
60
- number: 997,
61
- count: 1
62
- }]);
63
- expect((0, _primeFactorization.primeFactorization)(998)).toEqual([{
64
- number: 2,
65
- count: 1
66
- }, {
67
- number: 499,
68
- count: 1
69
- }]);
70
- });
71
- it("should handle consecutive prime factors", function () {
72
- expect((0, _primeFactorization.primeFactorization)(30)).toEqual([{
73
- number: 2,
74
- count: 1
75
- }, {
76
- number: 3,
77
- count: 1
78
- }, {
79
- number: 5,
80
- count: 1
81
- }]);
82
- });
83
- });
84
- });
@@ -1 +0,0 @@
1
- export {};
@@ -1,36 +0,0 @@
1
- "use strict";
2
-
3
- var _quotient = require("@/Math/quotient");
4
- describe("quotient function", function () {
5
- describe("basic division", function () {
6
- it("should handle exact division (no remainder)", function () {
7
- expect((0, _quotient.quotient)(4, 2)).toEqual([2, 0]);
8
- expect((0, _quotient.quotient)(10, 5)).toEqual([2, 0]);
9
- expect((0, _quotient.quotient)(100, 10)).toEqual([10, 0]);
10
- });
11
- it("should handle division with remainder", function () {
12
- expect((0, _quotient.quotient)(5, 2)).toEqual([2, 1]);
13
- expect((0, _quotient.quotient)(7, 3)).toEqual([2, 1]);
14
- expect((0, _quotient.quotient)(10, 3)).toEqual([3, 1]);
15
- });
16
- });
17
- describe("edge cases", function () {
18
- it("should handle division by 1", function () {
19
- expect((0, _quotient.quotient)(5, 1)).toEqual([5, 0]);
20
- expect((0, _quotient.quotient)(0, 1)).toEqual([0, 0]);
21
- });
22
- it("should handle when dividend is smaller than divisor", function () {
23
- expect((0, _quotient.quotient)(2, 5)).toEqual([0, 2]);
24
- expect((0, _quotient.quotient)(1, 10)).toEqual([0, 1]);
25
- });
26
- it("should handle negative numbers", function () {
27
- expect((0, _quotient.quotient)(-5, 2)).toEqual([-2, -1]);
28
- expect((0, _quotient.quotient)(5, -2)).toEqual([-2, 1]);
29
- expect((0, _quotient.quotient)(-5, -2)).toEqual([2, -1]);
30
- });
31
- it("should handle large numbers", function () {
32
- expect((0, _quotient.quotient)(1000, 3)).toEqual([333, 1]);
33
- expect((0, _quotient.quotient)(9999, 10)).toEqual([999, 9]);
34
- });
35
- });
36
- });
@@ -1 +0,0 @@
1
- export {};
@@ -1,50 +0,0 @@
1
- "use strict";
2
-
3
- var _radToDeg = require("@/Math/radToDeg");
4
- describe("radToDeg", function () {
5
- describe("basic conversions", function () {
6
- it("should convert common angles correctly", function () {
7
- expect((0, _radToDeg.radToDeg)(0)).toBe(0);
8
- expect((0, _radToDeg.radToDeg)(Math.PI / 2)).toBe(90);
9
- expect((0, _radToDeg.radToDeg)(Math.PI)).toBe(180);
10
- expect((0, _radToDeg.radToDeg)(3 * Math.PI / 2)).toBe(270);
11
- expect((0, _radToDeg.radToDeg)(2 * Math.PI)).toBe(360);
12
- });
13
- });
14
- describe("negative angles", function () {
15
- it("should handle negative angles correctly", function () {
16
- expect((0, _radToDeg.radToDeg)(-Math.PI / 2)).toBe(-90);
17
- expect((0, _radToDeg.radToDeg)(-Math.PI)).toBe(-180);
18
- expect((0, _radToDeg.radToDeg)(-3 * Math.PI / 2)).toBe(-270);
19
- expect((0, _radToDeg.radToDeg)(-2 * Math.PI)).toBe(-360);
20
- });
21
- });
22
- describe("floating point angles", function () {
23
- it("should handle floating point angles correctly", function () {
24
- expect((0, _radToDeg.radToDeg)(Math.PI / 4)).toBeCloseTo(45);
25
- expect((0, _radToDeg.radToDeg)(Math.PI * 60.7 / 180)).toBeCloseTo(60.7);
26
- expect((0, _radToDeg.radToDeg)(Math.PI * 120.2 / 180)).toBeCloseTo(120.2);
27
- });
28
- });
29
- describe("angles greater than 2π", function () {
30
- it("should handle angles greater than 2π correctly", function () {
31
- expect((0, _radToDeg.radToDeg)(5 * Math.PI / 2)).toBeCloseTo(450);
32
- expect((0, _radToDeg.radToDeg)(4 * Math.PI)).toBeCloseTo(720);
33
- expect((0, _radToDeg.radToDeg)(6 * Math.PI)).toBeCloseTo(1080);
34
- });
35
- });
36
- describe("special values", function () {
37
- it("should handle NaN and Infinity correctly", function () {
38
- expect((0, _radToDeg.radToDeg)(Number.NaN)).toBe(Number.NaN);
39
- expect((0, _radToDeg.radToDeg)(Number.POSITIVE_INFINITY)).toBe(Number.POSITIVE_INFINITY);
40
- expect((0, _radToDeg.radToDeg)(Number.NEGATIVE_INFINITY)).toBe(Number.NEGATIVE_INFINITY);
41
- });
42
- });
43
- describe("invalid inputs", function () {
44
- it("should handle invalid inputs appropriately", function () {
45
- expect((0, _radToDeg.radToDeg)("1.57")).toBeCloseTo(89.95);
46
- expect((0, _radToDeg.radToDeg)([1.57])).toBeCloseTo(89.95);
47
- expect((0, _radToDeg.radToDeg)({})).toBe(Number.NaN);
48
- });
49
- });
50
- });
@@ -1 +0,0 @@
1
- export {};
@@ -1,61 +0,0 @@
1
- "use strict";
2
-
3
- var _random = require("@/Math/random");
4
- describe("random function", function () {
5
- describe("basic random generation", function () {
6
- it("should generate random numbers within specified range", function () {
7
- var min = 1;
8
- var max = 10;
9
- for (var i = 0; i < 100; i++) {
10
- var result = (0, _random.random)(max, min);
11
- expect(result).toBeGreaterThanOrEqual(min);
12
- expect(result).toBeLessThanOrEqual(max);
13
- expect(Number.isInteger(result)).toBe(true);
14
- }
15
- });
16
- it("should use 0 as default minimum value", function () {
17
- var max = 5;
18
- for (var i = 0; i < 100; i++) {
19
- var result = (0, _random.random)(max);
20
- expect(result).toBeGreaterThanOrEqual(0);
21
- expect(result).toBeLessThanOrEqual(max);
22
- expect(Number.isInteger(result)).toBe(true);
23
- }
24
- });
25
- });
26
- describe("edge cases", function () {
27
- it("should return same value when max equals min", function () {
28
- var value = 7;
29
- var result = (0, _random.random)(value, value);
30
- expect(result).toBe(value);
31
- });
32
- it("should handle negative numbers", function () {
33
- var min = -10;
34
- var max = -5;
35
- for (var i = 0; i < 100; i++) {
36
- var result = (0, _random.random)(max, min);
37
- expect(result).toBeGreaterThanOrEqual(min);
38
- expect(result).toBeLessThanOrEqual(max);
39
- expect(Number.isInteger(result)).toBe(true);
40
- }
41
- });
42
- it("should handle mixed positive and negative range", function () {
43
- var min = -5;
44
- var max = 5;
45
- for (var i = 0; i < 100; i++) {
46
- var result = (0, _random.random)(max, min);
47
- expect(result).toBeGreaterThanOrEqual(min);
48
- expect(result).toBeLessThanOrEqual(max);
49
- expect(Number.isInteger(result)).toBe(true);
50
- }
51
- });
52
- it("should handle when min is greater than max", function () {
53
- var min = 10;
54
- var max = 5;
55
- var result = (0, _random.random)(max, min);
56
- expect(result).toBeGreaterThanOrEqual(max);
57
- expect(result).toBeLessThanOrEqual(min);
58
- expect(Number.isInteger(result)).toBe(true);
59
- });
60
- });
61
- });
@@ -1 +0,0 @@
1
- export {};