Commit 71b9997
authored
test: add comprehensive edge case tests for MathUtility (#5059)
Added 94 new tests covering edge cases for all MathUtility methods:
- doRandom: swapped min/max, negative ranges, solfege edge cases
- doOneOf: null/undefined values, objects
- doMod: negative numbers, floating point, zero dividend
- doSqrt: zero, decimal, string input errors
- doPlus: mixed types, empty strings, floating point
- doMinus: negative results, both negative, floating point
- doMultiply: zero, one, negatives, floating point
- doDivide: decimal results, negatives, string errors
- doCalculateDistance: same point, negative coords, axis-only
- doPower: zero/one base/exponent, negatives, fractional
- doAbs: positive unchanged, zero, strings
- doNegate: double negative, empty string, arrays, objects, null
- doInt: rounding at .4/.5, negatives, numeric strings, NaN
Total tests: 116 (up from 22)
Coverage improvement: Statements +0.01%, Branches +0.07%1 parent 770a6e6 commit 71b9997
1 file changed
+410
-0
lines changed
0 commit comments