umt 2.2.1 → 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 (393) 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/Function/curry.d.ts +141 -0
  15. package/module/Function/curry.js +11 -0
  16. package/module/Function/curry.js.map +1 -0
  17. package/module/Function/index.d.ts +1 -0
  18. package/module/Function/index.js +2 -0
  19. package/module/Function/index.js.map +1 -0
  20. package/module/Tool/index.d.ts +1 -0
  21. package/module/Tool/index.js +1 -0
  22. package/module/Tool/index.js.map +1 -1
  23. package/module/Tool/pipe.d.ts +66 -0
  24. package/module/Tool/pipe.js +98 -0
  25. package/module/Tool/pipe.js.map +1 -0
  26. package/module/Validate/index.d.ts +1 -0
  27. package/module/Validate/index.js +1 -0
  28. package/module/Validate/index.js.map +1 -1
  29. package/module/Validate/isString.d.ts +9 -0
  30. package/module/Validate/isString.js +12 -0
  31. package/module/Validate/isString.js.map +1 -0
  32. package/module/Validate/object/core.d.ts +2 -6
  33. package/module/Validate/object/core.js.map +1 -1
  34. package/module/Validate/type.d.ts +1 -0
  35. package/module/es5/Array/chunk.js +5 -3
  36. package/module/es5/Array/dualPivotQuickSort.d.ts +1 -2
  37. package/module/es5/Array/dualPivotQuickSort.js +8 -28
  38. package/module/es5/Array/quickSort.js +10 -25
  39. package/module/es5/Array/sortingHelpers/applyInsertionSortIfNeeded.d.ts +13 -0
  40. package/module/es5/Array/sortingHelpers/applyInsertionSortIfNeeded.js +25 -0
  41. package/module/es5/Array/sortingHelpers/rangeValidator.d.ts +17 -0
  42. package/module/es5/Array/sortingHelpers/rangeValidator.js +35 -0
  43. package/module/es5/Function/curry.d.ts +141 -0
  44. package/module/es5/Function/curry.js +38 -0
  45. package/module/es5/Function/index.d.ts +1 -0
  46. package/module/es5/Function/index.js +16 -0
  47. package/module/es5/Tool/index.d.ts +1 -0
  48. package/module/es5/Tool/index.js +11 -0
  49. package/module/es5/Tool/pipe.d.ts +66 -0
  50. package/module/es5/Tool/pipe.js +129 -0
  51. package/module/es5/Validate/index.d.ts +1 -0
  52. package/module/es5/Validate/index.js +11 -0
  53. package/module/es5/Validate/isString.d.ts +9 -0
  54. package/module/es5/Validate/isString.js +16 -0
  55. package/module/es5/Validate/object/core.d.ts +2 -6
  56. package/module/es5/Validate/type.d.ts +1 -0
  57. package/module/es5/index.d.ts +1 -0
  58. package/module/es5/index.js +11 -0
  59. package/module/es5/tsconfig.tsbuildinfo +1 -1
  60. package/module/index.d.ts +1 -0
  61. package/module/index.js +1 -0
  62. package/module/index.js.map +1 -1
  63. package/package.json +26 -22
  64. package/module/es5/tests/integration/Array/drop-and-first.test.d.ts +0 -1
  65. package/module/es5/tests/integration/Array/drop-and-first.test.js +0 -34
  66. package/module/es5/tests/integration/Tool/parseJson-and-Validate.test.d.ts +0 -1
  67. package/module/es5/tests/integration/Tool/parseJson-and-Validate.test.js +0 -80
  68. package/module/es5/tests/unit/Advance/rangeAdvance.test.d.ts +0 -1
  69. package/module/es5/tests/unit/Advance/rangeAdvance.test.js +0 -26
  70. package/module/es5/tests/unit/Array/arraysJoin.test.d.ts +0 -1
  71. package/module/es5/tests/unit/Array/arraysJoin.test.js +0 -19
  72. package/module/es5/tests/unit/Array/binarySearch.test.d.ts +0 -1
  73. package/module/es5/tests/unit/Array/binarySearch.test.js +0 -32
  74. package/module/es5/tests/unit/Array/checkFlagAlignment.test.d.ts +0 -1
  75. package/module/es5/tests/unit/Array/checkFlagAlignment.test.js +0 -206
  76. package/module/es5/tests/unit/Array/chunk.test.d.ts +0 -1
  77. package/module/es5/tests/unit/Array/chunk.test.js +0 -51
  78. package/module/es5/tests/unit/Array/compact.test.d.ts +0 -1
  79. package/module/es5/tests/unit/Array/compact.test.js +0 -53
  80. package/module/es5/tests/unit/Array/compareFunctionDefault.test.d.ts +0 -1
  81. package/module/es5/tests/unit/Array/compareFunctionDefault.test.js +0 -29
  82. package/module/es5/tests/unit/Array/drop.test.d.ts +0 -1
  83. package/module/es5/tests/unit/Array/drop.test.js +0 -84
  84. package/module/es5/tests/unit/Array/dualPivotQuickSort.test.d.ts +0 -1
  85. package/module/es5/tests/unit/Array/dualPivotQuickSort.test.js +0 -87
  86. package/module/es5/tests/unit/Array/first.test.d.ts +0 -1
  87. package/module/es5/tests/unit/Array/first.test.js +0 -28
  88. package/module/es5/tests/unit/Array/generateNumberArray.test.d.ts +0 -1
  89. package/module/es5/tests/unit/Array/generateNumberArray.test.js +0 -34
  90. package/module/es5/tests/unit/Array/getArraysCommon.test.d.ts +0 -1
  91. package/module/es5/tests/unit/Array/getArraysCommon.test.js +0 -40
  92. package/module/es5/tests/unit/Array/getArraysDiff.test.d.ts +0 -1
  93. package/module/es5/tests/unit/Array/getArraysDiff.test.js +0 -99
  94. package/module/es5/tests/unit/Array/groupBy.test.d.ts +0 -1
  95. package/module/es5/tests/unit/Array/groupBy.test.js +0 -87
  96. package/module/es5/tests/unit/Array/insertionSort.test.d.ts +0 -1
  97. package/module/es5/tests/unit/Array/insertionSort.test.js +0 -37
  98. package/module/es5/tests/unit/Array/mergeSort.test.d.ts +0 -1
  99. package/module/es5/tests/unit/Array/mergeSort.test.js +0 -49
  100. package/module/es5/tests/unit/Array/pop.test.d.ts +0 -1
  101. package/module/es5/tests/unit/Array/pop.test.js +0 -50
  102. package/module/es5/tests/unit/Array/quickSort.test.d.ts +0 -1
  103. package/module/es5/tests/unit/Array/quickSort.test.js +0 -118
  104. package/module/es5/tests/unit/Array/randomSelect.test.d.ts +0 -1
  105. package/module/es5/tests/unit/Array/randomSelect.test.js +0 -51
  106. package/module/es5/tests/unit/Array/range.test.d.ts +0 -1
  107. package/module/es5/tests/unit/Array/range.test.js +0 -42
  108. package/module/es5/tests/unit/Array/shuffle.test.d.ts +0 -1
  109. package/module/es5/tests/unit/Array/shuffle.test.js +0 -84
  110. package/module/es5/tests/unit/Array/shuffle2DArray.test.d.ts +0 -1
  111. package/module/es5/tests/unit/Array/shuffle2DArray.test.js +0 -90
  112. package/module/es5/tests/unit/Array/sum.test.d.ts +0 -1
  113. package/module/es5/tests/unit/Array/sum.test.js +0 -44
  114. package/module/es5/tests/unit/Array/timSort.test.d.ts +0 -1
  115. package/module/es5/tests/unit/Array/timSort.test.js +0 -128
  116. package/module/es5/tests/unit/Array/zip.test.d.ts +0 -1
  117. package/module/es5/tests/unit/Array/zip.test.js +0 -69
  118. package/module/es5/tests/unit/Array/zipLongest.test.d.ts +0 -1
  119. package/module/es5/tests/unit/Array/zipLongest.test.js +0 -74
  120. package/module/es5/tests/unit/Color/cmykToRgba.test.d.ts +0 -1
  121. package/module/es5/tests/unit/Color/cmykToRgba.test.js +0 -58
  122. package/module/es5/tests/unit/Color/hexaToRgba.test.d.ts +0 -1
  123. package/module/es5/tests/unit/Color/hexaToRgba.test.js +0 -115
  124. package/module/es5/tests/unit/Color/hslaToRgba.test.d.ts +0 -1
  125. package/module/es5/tests/unit/Color/hslaToRgba.test.js +0 -141
  126. package/module/es5/tests/unit/Color/rgbaToCmyk.test.d.ts +0 -1
  127. package/module/es5/tests/unit/Color/rgbaToCmyk.test.js +0 -139
  128. package/module/es5/tests/unit/Color/rgbaToHexA.test.d.ts +0 -1
  129. package/module/es5/tests/unit/Color/rgbaToHexA.test.js +0 -114
  130. package/module/es5/tests/unit/Color/rgbaToHsla.test.d.ts +0 -1
  131. package/module/es5/tests/unit/Color/rgbaToHsla.test.js +0 -190
  132. package/module/es5/tests/unit/Consts/clock.test.d.ts +0 -1
  133. package/module/es5/tests/unit/Consts/clock.test.js +0 -71
  134. package/module/es5/tests/unit/Consts/httpClientErrorStatus.test.d.ts +0 -1
  135. package/module/es5/tests/unit/Consts/httpClientErrorStatus.test.js +0 -33
  136. package/module/es5/tests/unit/Consts/httpInformationalStatus.test.d.ts +0 -1
  137. package/module/es5/tests/unit/Consts/httpInformationalStatus.test.js +0 -13
  138. package/module/es5/tests/unit/Consts/httpRedirectionStatus.test.d.ts +0 -1
  139. package/module/es5/tests/unit/Consts/httpRedirectionStatus.test.js +0 -16
  140. package/module/es5/tests/unit/Consts/httpServerErrorStatus.test.d.ts +0 -1
  141. package/module/es5/tests/unit/Consts/httpServerErrorStatus.test.js +0 -15
  142. package/module/es5/tests/unit/Consts/httpStatus.test.d.ts +0 -1
  143. package/module/es5/tests/unit/Consts/httpStatus.test.js +0 -82
  144. package/module/es5/tests/unit/Consts/httpSuccessStatus.test.d.ts +0 -1
  145. package/module/es5/tests/unit/Consts/httpSuccessStatus.test.js +0 -16
  146. package/module/es5/tests/unit/Date/birthday.test.d.ts +0 -1
  147. package/module/es5/tests/unit/Date/birthday.test.js +0 -31
  148. package/module/es5/tests/unit/Date/dateRange.test.d.ts +0 -1
  149. package/module/es5/tests/unit/Date/dateRange.test.js +0 -40
  150. package/module/es5/tests/unit/Date/dayOfWeek.test.d.ts +0 -1
  151. package/module/es5/tests/unit/Date/dayOfWeek.test.js +0 -39
  152. package/module/es5/tests/unit/Date/deleteSpace.test.d.ts +0 -1
  153. package/module/es5/tests/unit/Date/deleteSpace.test.js +0 -35
  154. package/module/es5/tests/unit/Date/format.test.d.ts +0 -1
  155. package/module/es5/tests/unit/Date/format.test.js +0 -50
  156. package/module/es5/tests/unit/Date/getDay.test.d.ts +0 -1
  157. package/module/es5/tests/unit/Date/getDay.test.js +0 -40
  158. package/module/es5/tests/unit/Date/getTimezoneOffsetString.test.d.ts +0 -1
  159. package/module/es5/tests/unit/Date/getTimezoneOffsetString.test.js +0 -26
  160. package/module/es5/tests/unit/Date/isLeapYear.test.d.ts +0 -1
  161. package/module/es5/tests/unit/Date/isLeapYear.test.js +0 -30
  162. package/module/es5/tests/unit/Date/new.test.d.ts +0 -1
  163. package/module/es5/tests/unit/Date/new.test.js +0 -39
  164. package/module/es5/tests/unit/Date/now.test.d.ts +0 -1
  165. package/module/es5/tests/unit/Date/now.test.js +0 -42
  166. package/module/es5/tests/unit/Error/safeExecute.test.d.ts +0 -1
  167. package/module/es5/tests/unit/Error/safeExecute.test.js +0 -75
  168. package/module/es5/tests/unit/IP/cidrToLong.test.d.ts +0 -1
  169. package/module/es5/tests/unit/IP/cidrToLong.test.js +0 -32
  170. package/module/es5/tests/unit/IP/cidrToSubnetMask.test.d.ts +0 -1
  171. package/module/es5/tests/unit/IP/cidrToSubnetMask.test.js +0 -36
  172. package/module/es5/tests/unit/IP/getIpClass.test.d.ts +0 -1
  173. package/module/es5/tests/unit/IP/getIpClass.test.js +0 -36
  174. package/module/es5/tests/unit/IP/getNetworkAddress.test.d.ts +0 -1
  175. package/module/es5/tests/unit/IP/getNetworkAddress.test.js +0 -40
  176. package/module/es5/tests/unit/IP/ipToBinaryString.test.d.ts +0 -1
  177. package/module/es5/tests/unit/IP/ipToBinaryString.test.js +0 -46
  178. package/module/es5/tests/unit/IP/ipToLong.test.d.ts +0 -1
  179. package/module/es5/tests/unit/IP/ipToLong.test.js +0 -34
  180. package/module/es5/tests/unit/IP/isInRange.test.d.ts +0 -1
  181. package/module/es5/tests/unit/IP/isInRange.test.js +0 -82
  182. package/module/es5/tests/unit/IP/isPrivateIp.test.d.ts +0 -1
  183. package/module/es5/tests/unit/IP/isPrivateIp.test.js +0 -26
  184. package/module/es5/tests/unit/IP/longToIp.test.d.ts +0 -1
  185. package/module/es5/tests/unit/IP/longToIp.test.js +0 -39
  186. package/module/es5/tests/unit/IP/subnetMaskToCidr.test.d.ts +0 -1
  187. package/module/es5/tests/unit/IP/subnetMaskToCidr.test.js +0 -41
  188. package/module/es5/tests/unit/Math/addition.test.d.ts +0 -1
  189. package/module/es5/tests/unit/Math/addition.test.js +0 -79
  190. package/module/es5/tests/unit/Math/average.test.d.ts +0 -1
  191. package/module/es5/tests/unit/Math/average.test.js +0 -48
  192. package/module/es5/tests/unit/Math/bitwise.test.d.ts +0 -1
  193. package/module/es5/tests/unit/Math/bitwise.test.js +0 -62
  194. package/module/es5/tests/unit/Math/calculator/calculator.test.d.ts +0 -1
  195. package/module/es5/tests/unit/Math/calculator/calculator.test.js +0 -76
  196. package/module/es5/tests/unit/Math/calculator/calculatorInitialization.test.d.ts +0 -1
  197. package/module/es5/tests/unit/Math/calculator/calculatorInitialization.test.js +0 -21
  198. package/module/es5/tests/unit/Math/calculator/convertCurrency.test.d.ts +0 -1
  199. package/module/es5/tests/unit/Math/calculator/convertCurrency.test.js +0 -40
  200. package/module/es5/tests/unit/Math/calculator/literalExpression.test.d.ts +0 -1
  201. package/module/es5/tests/unit/Math/calculator/literalExpression.test.js +0 -51
  202. package/module/es5/tests/unit/Math/degToRad.test.d.ts +0 -1
  203. package/module/es5/tests/unit/Math/degToRad.test.js +0 -50
  204. package/module/es5/tests/unit/Math/deviationValue.test.d.ts +0 -1
  205. package/module/es5/tests/unit/Math/deviationValue.test.js +0 -30
  206. package/module/es5/tests/unit/Math/division.test.d.ts +0 -1
  207. package/module/es5/tests/unit/Math/division.test.js +0 -81
  208. package/module/es5/tests/unit/Math/factorial.test.d.ts +0 -1
  209. package/module/es5/tests/unit/Math/factorial.test.js +0 -26
  210. package/module/es5/tests/unit/Math/factorize.test.d.ts +0 -1
  211. package/module/es5/tests/unit/Math/factorize.test.js +0 -38
  212. package/module/es5/tests/unit/Math/flexibleNumberConversion.test.d.ts +0 -1
  213. package/module/es5/tests/unit/Math/flexibleNumberConversion.test.js +0 -195
  214. package/module/es5/tests/unit/Math/gcd.test.d.ts +0 -1
  215. package/module/es5/tests/unit/Math/gcd.test.js +0 -35
  216. package/module/es5/tests/unit/Math/getDecimalLength.test.d.ts +0 -1
  217. package/module/es5/tests/unit/Math/getDecimalLength.test.js +0 -44
  218. package/module/es5/tests/unit/Math/lcm.test.d.ts +0 -1
  219. package/module/es5/tests/unit/Math/lcm.test.js +0 -43
  220. package/module/es5/tests/unit/Math/linearCongruentialGenerator.test.d.ts +0 -1
  221. package/module/es5/tests/unit/Math/linearCongruentialGenerator.test.js +0 -25
  222. package/module/es5/tests/unit/Math/mathConverter.test.d.ts +0 -1
  223. package/module/es5/tests/unit/Math/mathConverter.test.js +0 -37
  224. package/module/es5/tests/unit/Math/mathSeparator.test.d.ts +0 -1
  225. package/module/es5/tests/unit/Math/mathSeparator.test.js +0 -59
  226. package/module/es5/tests/unit/Math/max.test.d.ts +0 -1
  227. package/module/es5/tests/unit/Math/max.test.js +0 -22
  228. package/module/es5/tests/unit/Math/median.test.d.ts +0 -1
  229. package/module/es5/tests/unit/Math/median.test.js +0 -17
  230. package/module/es5/tests/unit/Math/min.test.d.ts +0 -1
  231. package/module/es5/tests/unit/Math/min.test.js +0 -22
  232. package/module/es5/tests/unit/Math/multiples.test.d.ts +0 -1
  233. package/module/es5/tests/unit/Math/multiples.test.js +0 -30
  234. package/module/es5/tests/unit/Math/multiplication.test.d.ts +0 -1
  235. package/module/es5/tests/unit/Math/multiplication.test.js +0 -48
  236. package/module/es5/tests/unit/Math/nCr.test.d.ts +0 -1
  237. package/module/es5/tests/unit/Math/nCr.test.js +0 -34
  238. package/module/es5/tests/unit/Math/nHr.test.d.ts +0 -1
  239. package/module/es5/tests/unit/Math/nHr.test.js +0 -35
  240. package/module/es5/tests/unit/Math/nPr.test.d.ts +0 -1
  241. package/module/es5/tests/unit/Math/nPr.test.js +0 -38
  242. package/module/es5/tests/unit/Math/primeFactorization.test.d.ts +0 -1
  243. package/module/es5/tests/unit/Math/primeFactorization.test.js +0 -84
  244. package/module/es5/tests/unit/Math/quotient.test.d.ts +0 -1
  245. package/module/es5/tests/unit/Math/quotient.test.js +0 -36
  246. package/module/es5/tests/unit/Math/radToDeg.test.d.ts +0 -1
  247. package/module/es5/tests/unit/Math/radToDeg.test.js +0 -50
  248. package/module/es5/tests/unit/Math/random.test.d.ts +0 -1
  249. package/module/es5/tests/unit/Math/random.test.js +0 -61
  250. package/module/es5/tests/unit/Math/reduce.test.d.ts +0 -1
  251. package/module/es5/tests/unit/Math/reduce.test.js +0 -93
  252. package/module/es5/tests/unit/Math/repeatedTrial.test.d.ts +0 -1
  253. package/module/es5/tests/unit/Math/repeatedTrial.test.js +0 -39
  254. package/module/es5/tests/unit/Math/roundOf.test.d.ts +0 -1
  255. package/module/es5/tests/unit/Math/roundOf.test.js +0 -40
  256. package/module/es5/tests/unit/Math/solveEquation.test.d.ts +0 -1
  257. package/module/es5/tests/unit/Math/solveEquation.test.js +0 -24
  258. package/module/es5/tests/unit/Math/standardDeviation.test.d.ts +0 -1
  259. package/module/es5/tests/unit/Math/standardDeviation.test.js +0 -23
  260. package/module/es5/tests/unit/Math/subtract.test.d.ts +0 -1
  261. package/module/es5/tests/unit/Math/subtract.test.js +0 -46
  262. package/module/es5/tests/unit/Math/toBaseN.test.d.ts +0 -1
  263. package/module/es5/tests/unit/Math/toBaseN.test.js +0 -40
  264. package/module/es5/tests/unit/Math/toCelsius.test.d.ts +0 -1
  265. package/module/es5/tests/unit/Math/toCelsius.test.js +0 -18
  266. package/module/es5/tests/unit/Math/toKelvin.test.d.ts +0 -1
  267. package/module/es5/tests/unit/Math/toKelvin.test.js +0 -18
  268. package/module/es5/tests/unit/Math/uuidv7.test.d.ts +0 -1
  269. package/module/es5/tests/unit/Math/uuidv7.test.js +0 -33
  270. package/module/es5/tests/unit/Math/valueSwap.test.d.ts +0 -1
  271. package/module/es5/tests/unit/Math/valueSwap.test.js +0 -28
  272. package/module/es5/tests/unit/Math/xoshiro256.test.d.ts +0 -1
  273. package/module/es5/tests/unit/Math/xoshiro256.test.js +0 -33
  274. package/module/es5/tests/unit/Object/has.test.d.ts +0 -1
  275. package/module/es5/tests/unit/Object/has.test.js +0 -60
  276. package/module/es5/tests/unit/Object/keyBy.test.d.ts +0 -1
  277. package/module/es5/tests/unit/Object/keyBy.test.js +0 -120
  278. package/module/es5/tests/unit/Object/pick.test.d.ts +0 -1
  279. package/module/es5/tests/unit/Object/pick.test.js +0 -109
  280. package/module/es5/tests/unit/Object/pickDeep.test.d.ts +0 -1
  281. package/module/es5/tests/unit/Object/pickDeep.test.js +0 -222
  282. package/module/es5/tests/unit/Simple/Array/quickSortSimple.test.d.ts +0 -1
  283. package/module/es5/tests/unit/Simple/Array/quickSortSimple.test.js +0 -18
  284. package/module/es5/tests/unit/Simple/Date/dayOfWeekSimple.test.d.ts +0 -1
  285. package/module/es5/tests/unit/Simple/Date/dayOfWeekSimple.test.js +0 -58
  286. package/module/es5/tests/unit/Simple/Math/deviationValueSimple.test.d.ts +0 -1
  287. package/module/es5/tests/unit/Simple/Math/deviationValueSimple.test.js +0 -43
  288. package/module/es5/tests/unit/String/deleteSpaces.test.d.ts +0 -1
  289. package/module/es5/tests/unit/String/deleteSpaces.test.js +0 -22
  290. package/module/es5/tests/unit/String/formatString.test.d.ts +0 -1
  291. package/module/es5/tests/unit/String/formatString.test.js +0 -47
  292. package/module/es5/tests/unit/String/fromBase64.test.d.ts +0 -1
  293. package/module/es5/tests/unit/String/fromBase64.test.js +0 -37
  294. package/module/es5/tests/unit/String/hasNoLetters.test.d.ts +0 -1
  295. package/module/es5/tests/unit/String/hasNoLetters.test.js +0 -29
  296. package/module/es5/tests/unit/String/padEnd.test.d.ts +0 -1
  297. package/module/es5/tests/unit/String/padEnd.test.js +0 -22
  298. package/module/es5/tests/unit/String/padStart.test.d.ts +0 -1
  299. package/module/es5/tests/unit/String/padStart.test.js +0 -40
  300. package/module/es5/tests/unit/String/randomString.test.d.ts +0 -1
  301. package/module/es5/tests/unit/String/randomString.test.js +0 -21
  302. package/module/es5/tests/unit/String/randomStringInitialization.test.d.ts +0 -1
  303. package/module/es5/tests/unit/String/randomStringInitialization.test.js +0 -25
  304. package/module/es5/tests/unit/String/reverseString.test.d.ts +0 -1
  305. package/module/es5/tests/unit/String/reverseString.test.js +0 -35
  306. package/module/es5/tests/unit/String/toBase64.test.d.ts +0 -1
  307. package/module/es5/tests/unit/String/toBase64.test.js +0 -20
  308. package/module/es5/tests/unit/String/toHalfWidth.test.d.ts +0 -1
  309. package/module/es5/tests/unit/String/toHalfWidth.test.js +0 -16
  310. package/module/es5/tests/unit/String/trimCharacters.test.d.ts +0 -1
  311. package/module/es5/tests/unit/String/trimCharacters.test.js +0 -17
  312. package/module/es5/tests/unit/String/trimEndCharacters.test.d.ts +0 -1
  313. package/module/es5/tests/unit/String/trimEndCharacters.test.js +0 -33
  314. package/module/es5/tests/unit/String/trimStartCharacters.test.d.ts +0 -1
  315. package/module/es5/tests/unit/String/trimStartCharacters.test.js +0 -33
  316. package/module/es5/tests/unit/Time/convertTime.test.d.ts +0 -1
  317. package/module/es5/tests/unit/Time/convertTime.test.js +0 -135
  318. package/module/es5/tests/unit/Time/normalizeTimeUnit.test.d.ts +0 -1
  319. package/module/es5/tests/unit/Time/normalizeTimeUnit.test.js +0 -29
  320. package/module/es5/tests/unit/Tool/createPipeline.test.d.ts +0 -1
  321. package/module/es5/tests/unit/Tool/createPipeline.test.js +0 -184
  322. package/module/es5/tests/unit/Tool/parseJson.test.d.ts +0 -1
  323. package/module/es5/tests/unit/Tool/parseJson.test.js +0 -46
  324. package/module/es5/tests/unit/UA/extractBrowserFromUserAgent.test.d.ts +0 -1
  325. package/module/es5/tests/unit/UA/extractBrowserFromUserAgent.test.js +0 -47
  326. package/module/es5/tests/unit/UA/extractDeviceFromUserAgent.test.d.ts +0 -1
  327. package/module/es5/tests/unit/UA/extractDeviceFromUserAgent.test.js +0 -55
  328. package/module/es5/tests/unit/UA/extractOsFromUserAgent.test.d.ts +0 -1
  329. package/module/es5/tests/unit/UA/extractOsFromUserAgent.test.js +0 -57
  330. package/module/es5/tests/unit/UA/parseUserAgent.test.d.ts +0 -1
  331. package/module/es5/tests/unit/UA/parseUserAgent.test.js +0 -95
  332. package/module/es5/tests/unit/Unit/unitConverterInitialization.test.d.ts +0 -1
  333. package/module/es5/tests/unit/Unit/unitConverterInitialization.test.js +0 -40
  334. package/module/es5/tests/unit/Validate/array/core.test.d.ts +0 -1
  335. package/module/es5/tests/unit/Validate/array/core.test.js +0 -86
  336. package/module/es5/tests/unit/Validate/boolean/core.test.d.ts +0 -1
  337. package/module/es5/tests/unit/Validate/boolean/core.test.js +0 -29
  338. package/module/es5/tests/unit/Validate/core/core.test.d.ts +0 -1
  339. package/module/es5/tests/unit/Validate/core/core.test.js +0 -87
  340. package/module/es5/tests/unit/Validate/isArray.test.d.ts +0 -1
  341. package/module/es5/tests/unit/Validate/isArray.test.js +0 -36
  342. package/module/es5/tests/unit/Validate/isDictionaryObject.test.d.ts +0 -1
  343. package/module/es5/tests/unit/Validate/isDictionaryObject.test.js +0 -62
  344. package/module/es5/tests/unit/Validate/isDouble.test.d.ts +0 -1
  345. package/module/es5/tests/unit/Validate/isDouble.test.js +0 -47
  346. package/module/es5/tests/unit/Validate/isEqual.test.d.ts +0 -1
  347. package/module/es5/tests/unit/Validate/isEqual.test.js +0 -74
  348. package/module/es5/tests/unit/Validate/isNotEmpty.test.d.ts +0 -1
  349. package/module/es5/tests/unit/Validate/isNotEmpty.test.js +0 -43
  350. package/module/es5/tests/unit/Validate/isNumber.test.d.ts +0 -1
  351. package/module/es5/tests/unit/Validate/isNumber.test.js +0 -77
  352. package/module/es5/tests/unit/Validate/isPerfectSquare.test.d.ts +0 -1
  353. package/module/es5/tests/unit/Validate/isPerfectSquare.test.js +0 -27
  354. package/module/es5/tests/unit/Validate/isPrimeNumber.test.d.ts +0 -1
  355. package/module/es5/tests/unit/Validate/isPrimeNumber.test.js +0 -51
  356. package/module/es5/tests/unit/Validate/isValueNaN.test.d.ts +0 -1
  357. package/module/es5/tests/unit/Validate/isValueNaN.test.js +0 -54
  358. package/module/es5/tests/unit/Validate/number/core.test.d.ts +0 -1
  359. package/module/es5/tests/unit/Validate/number/core.test.js +0 -36
  360. package/module/es5/tests/unit/Validate/number/double.test.d.ts +0 -1
  361. package/module/es5/tests/unit/Validate/number/double.test.js +0 -23
  362. package/module/es5/tests/unit/Validate/number/even.test.d.ts +0 -1
  363. package/module/es5/tests/unit/Validate/number/even.test.js +0 -23
  364. package/module/es5/tests/unit/Validate/number/maxValue.test.d.ts +0 -1
  365. package/module/es5/tests/unit/Validate/number/maxValue.test.js +0 -20
  366. package/module/es5/tests/unit/Validate/number/minValue.test.d.ts +0 -1
  367. package/module/es5/tests/unit/Validate/number/minValue.test.js +0 -20
  368. package/module/es5/tests/unit/Validate/number/odd.test.d.ts +0 -1
  369. package/module/es5/tests/unit/Validate/number/odd.test.js +0 -23
  370. package/module/es5/tests/unit/Validate/number/prime.test.d.ts +0 -1
  371. package/module/es5/tests/unit/Validate/number/prime.test.js +0 -25
  372. package/module/es5/tests/unit/Validate/object/core.test.d.ts +0 -1
  373. package/module/es5/tests/unit/Validate/object/core.test.js +0 -79
  374. package/module/es5/tests/unit/Validate/string/core.test.d.ts +0 -1
  375. package/module/es5/tests/unit/Validate/string/core.test.js +0 -27
  376. package/module/es5/tests/unit/Validate/string/email.test.d.ts +0 -1
  377. package/module/es5/tests/unit/Validate/string/email.test.js +0 -21
  378. package/module/es5/tests/unit/Validate/string/length.test.d.ts +0 -1
  379. package/module/es5/tests/unit/Validate/string/length.test.js +0 -18
  380. package/module/es5/tests/unit/Validate/string/maxLength.test.d.ts +0 -1
  381. package/module/es5/tests/unit/Validate/string/maxLength.test.js +0 -18
  382. package/module/es5/tests/unit/Validate/string/minLength.test.d.ts +0 -1
  383. package/module/es5/tests/unit/Validate/string/minLength.test.js +0 -18
  384. package/module/es5/tests/unit/Validate/string/numberString.test.d.ts +0 -1
  385. package/module/es5/tests/unit/Validate/string/numberString.test.js +0 -22
  386. package/module/es5/tests/unit/Validate/string/regexMatch.test.d.ts +0 -1
  387. package/module/es5/tests/unit/Validate/string/regexMatch.test.js +0 -29
  388. package/module/es5/tests/unit/Validate/string/uuid.test.d.ts +0 -1
  389. package/module/es5/tests/unit/Validate/string/uuid.test.js +0 -72
  390. package/module/es5/tests/unit/types/arrayType.test.d.ts +0 -1
  391. package/module/es5/tests/unit/types/arrayType.test.js +0 -11
  392. package/module/es5/tests/unit/types/clockType.test.d.ts +0 -1
  393. package/module/es5/tests/unit/types/clockType.test.js +0 -37
@@ -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 {};