Browse Source

feat(js-checkpoint):add test for jabs exercise

CON-2196-Tests-create-test-for-jabs-subject
root 1 year ago
parent
commit
ec30b921b6
  1. 18
      js/tests/jabs_test.js

18
js/tests/jabs_test.js

@ -0,0 +1,18 @@
Math.abs = undefined
// /*/ // ⚡
export const tests = []
const t = (f) => tests.push(f)
t(() => isPositive(3))
t(() => isPositive(1998790))
t(() => !isPositive(-1))
t(() => !isPositive(-0.7))
t(() => !isPositive(-787823))
t(() => !isPositive(0))
t(({ eq }) => eq(abs(0), 0))
t(({ eq }) => eq(abs(-1), 1))
t(({ eq }) => eq(abs(-13.2), 13.2))
t(({ eq }) => eq(abs(132), 132))
Object.freeze(tests)
Loading…
Cancel
Save