Skip to content

feat: add round function #9

feat: add round function

feat: add round function #9

Triggered via pull request June 30, 2024 20:02
Status Failure
Total duration 37s
Artifacts

check-pr.yml

on: pull_request
Matrix: Test
Fit to window
Zoom out
Zoom in

Annotations

34 errors
Validate: tsconfig.json#L5
Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set.
Validate
Process completed with exit code 1.
src/number/tests/round.test.ts > round function > rounds to specified precision: src/number/tests/round.test.ts#L13
AssertionError: expected 1 to be 1.01 // Object.is equality - Expected + Received - 1.01 + 1 ❯ src/number/tests/round.test.ts:13:31
src/number/tests/round.test.ts > round function > handles edge cases with large positive precision: src/number/tests/round.test.ts#L57
AssertionError: expected [ 10, Infinity, Infinity, …(13) ] to deeply equal [ 10, 100, 1000, 10000, 100000, …(11) ] - Expected + Received Array [ 10, - 100, - 1000, - 10000, - 100000, - 1000000, - 10000000, - 100000000, - 1000000000, - 10000000000, - 100000000000, - 1000000000000, - 10000000000000, - 100000000000000, - 1000000000000000, - 10000000000000000, + Infinity, + Infinity, + Infinity, + Infinity, + Infinity, + Infinity, + Infinity, + Infinity, + Infinity, + Infinity, + Infinity, + Infinity, + Infinity, + Infinity, + Infinity, ] ❯ src/number/tests/round.test.ts:57:20
src/number/tests/round.test.ts > round function > lodash suite > round: don't return `NaN` for large `precision` values: src/number/tests/round.test.ts#L165
AssertionError: expected -0 to be +0 // Object.is equality - Expected + Received - 0 + -0 ❯ src/number/tests/round.test.ts:165:54
src/number/tests/round.test.ts > round function > lodash suite > ceil: return a rounded number without a precision: src/number/tests/round.test.ts#L84
AssertionError: expected 4 to be 5 // Object.is equality - Expected + Received - 5 + 4 ❯ src/number/tests/round.test.ts:84:24
src/number/tests/round.test.ts > round function > lodash suite > ceil: work with a precision of `0`: src/number/tests/round.test.ts#L89
AssertionError: expected 4 to be 5 // Object.is equality - Expected + Received - 5 + 4 ❯ src/number/tests/round.test.ts:89:24
src/number/tests/round.test.ts > round function > lodash suite > ceil: don't return `NaN` for large `precision` values: src/number/tests/round.test.ts#L165
AssertionError: expected -0 to be +0 // Object.is equality - Expected + Received - 0 + -0 ❯ src/number/tests/round.test.ts:165:54
src/number/tests/round.test.ts > round function > lodash suite > floor: work with a positive precision: src/number/tests/round.test.ts#L94
AssertionError: expected 4.02 to be 4.01 // Object.is equality - Expected + Received - 4.01 + 4.02 ❯ src/number/tests/round.test.ts:94:24
src/number/tests/round.test.ts > round function > lodash suite > floor: work with a negative precision: src/number/tests/round.test.ts#L102
AssertionError: expected 4200 to be 4100 // Object.is equality - Expected + Received - 4100 + 4200 ❯ src/number/tests/round.test.ts:102:24
src/number/tests/round.test.ts > round function > lodash suite > floor: don't return `NaN` for large `precision` values: src/number/tests/round.test.ts#L165
AssertionError: expected -0 to be -Infinity // Object.is equality - Expected + Received - -Infinity + -0 ❯ src/number/tests/round.test.ts:165:54
Test (20.x)
Process completed with exit code 1.
Test (18.x)
The job was canceled because "_20_x" failed.
src/number/tests/round.test.ts > round function > rounds to specified precision: src/number/tests/round.test.ts#L13
AssertionError: expected 1 to be 1.01 // Object.is equality - Expected + Received - 1.01 + 1 ❯ src/number/tests/round.test.ts:13:31
src/number/tests/round.test.ts > round function > handles edge cases with large positive precision: src/number/tests/round.test.ts#L57
AssertionError: expected [ 10, Infinity, Infinity, …(13) ] to deeply equal [ 10, 100, 1000, 10000, 100000, …(11) ] - Expected + Received Array [ 10, - 100, - 1000, - 10000, - 100000, - 1000000, - 10000000, - 100000000, - 1000000000, - 10000000000, - 100000000000, - 1000000000000, - 10000000000000, - 100000000000000, - 1000000000000000, - 10000000000000000, + Infinity, + Infinity, + Infinity, + Infinity, + Infinity, + Infinity, + Infinity, + Infinity, + Infinity, + Infinity, + Infinity, + Infinity, + Infinity, + Infinity, + Infinity, ] ❯ src/number/tests/round.test.ts:57:20
src/number/tests/round.test.ts > round function > lodash suite > round: don't return `NaN` for large `precision` values: src/number/tests/round.test.ts#L165
AssertionError: expected -0 to be +0 // Object.is equality - Expected + Received - 0 + -0 ❯ src/number/tests/round.test.ts:165:54
src/number/tests/round.test.ts > round function > lodash suite > ceil: return a rounded number without a precision: src/number/tests/round.test.ts#L84
AssertionError: expected 4 to be 5 // Object.is equality - Expected + Received - 5 + 4 ❯ src/number/tests/round.test.ts:84:24
src/number/tests/round.test.ts > round function > lodash suite > ceil: work with a precision of `0`: src/number/tests/round.test.ts#L89
AssertionError: expected 4 to be 5 // Object.is equality - Expected + Received - 5 + 4 ❯ src/number/tests/round.test.ts:89:24
src/number/tests/round.test.ts > round function > lodash suite > ceil: don't return `NaN` for large `precision` values: src/number/tests/round.test.ts#L165
AssertionError: expected -0 to be +0 // Object.is equality - Expected + Received - 0 + -0 ❯ src/number/tests/round.test.ts:165:54
src/number/tests/round.test.ts > round function > lodash suite > floor: work with a positive precision: src/number/tests/round.test.ts#L94
AssertionError: expected 4.02 to be 4.01 // Object.is equality - Expected + Received - 4.01 + 4.02 ❯ src/number/tests/round.test.ts:94:24
src/number/tests/round.test.ts > round function > lodash suite > floor: work with a negative precision: src/number/tests/round.test.ts#L102
AssertionError: expected 4200 to be 4100 // Object.is equality - Expected + Received - 4100 + 4200 ❯ src/number/tests/round.test.ts:102:24
src/number/tests/round.test.ts > round function > lodash suite > floor: don't return `NaN` for large `precision` values: src/number/tests/round.test.ts#L165
AssertionError: expected -0 to be -Infinity // Object.is equality - Expected + Received - -Infinity + -0 ❯ src/number/tests/round.test.ts:165:54
Test (18.x)
Process completed with exit code 1.
Test (22.x)
The job was canceled because "_20_x" failed.
src/number/tests/round.test.ts > round function > rounds to specified precision: src/number/tests/round.test.ts#L13
AssertionError: expected 1 to be 1.01 // Object.is equality - Expected + Received - 1.01 + 1 ❯ src/number/tests/round.test.ts:13:31
src/number/tests/round.test.ts > round function > handles edge cases with large positive precision: src/number/tests/round.test.ts#L57
AssertionError: expected [ 10, Infinity, Infinity, …(13) ] to deeply equal [ 10, 100, 1000, 10000, 100000, …(11) ] - Expected + Received Array [ 10, - 100, - 1000, - 10000, - 100000, - 1000000, - 10000000, - 100000000, - 1000000000, - 10000000000, - 100000000000, - 1000000000000, - 10000000000000, - 100000000000000, - 1000000000000000, - 10000000000000000, + Infinity, + Infinity, + Infinity, + Infinity, + Infinity, + Infinity, + Infinity, + Infinity, + Infinity, + Infinity, + Infinity, + Infinity, + Infinity, + Infinity, + Infinity, ] ❯ src/number/tests/round.test.ts:57:20
src/number/tests/round.test.ts > round function > lodash suite > round: don't return `NaN` for large `precision` values: src/number/tests/round.test.ts#L165
AssertionError: expected -0 to be +0 // Object.is equality - Expected + Received - 0 + -0 ❯ src/number/tests/round.test.ts:165:54
src/number/tests/round.test.ts > round function > lodash suite > ceil: return a rounded number without a precision: src/number/tests/round.test.ts#L84
AssertionError: expected 4 to be 5 // Object.is equality - Expected + Received - 5 + 4 ❯ src/number/tests/round.test.ts:84:24
src/number/tests/round.test.ts > round function > lodash suite > ceil: work with a precision of `0`: src/number/tests/round.test.ts#L89
AssertionError: expected 4 to be 5 // Object.is equality - Expected + Received - 5 + 4 ❯ src/number/tests/round.test.ts:89:24
src/number/tests/round.test.ts > round function > lodash suite > ceil: don't return `NaN` for large `precision` values: src/number/tests/round.test.ts#L165
AssertionError: expected -0 to be +0 // Object.is equality - Expected + Received - 0 + -0 ❯ src/number/tests/round.test.ts:165:54
src/number/tests/round.test.ts > round function > lodash suite > floor: work with a positive precision: src/number/tests/round.test.ts#L94
AssertionError: expected 4.02 to be 4.01 // Object.is equality - Expected + Received - 4.01 + 4.02 ❯ src/number/tests/round.test.ts:94:24
src/number/tests/round.test.ts > round function > lodash suite > floor: work with a negative precision: src/number/tests/round.test.ts#L102
AssertionError: expected 4200 to be 4100 // Object.is equality - Expected + Received - 4100 + 4200 ❯ src/number/tests/round.test.ts:102:24
src/number/tests/round.test.ts > round function > lodash suite > floor: don't return `NaN` for large `precision` values: src/number/tests/round.test.ts#L165
AssertionError: expected -0 to be -Infinity // Object.is equality - Expected + Received - -Infinity + -0 ❯ src/number/tests/round.test.ts:165:54
Test (22.x)
Process completed with exit code 1.