Files
JavaScript/Maths/test/EulersTotientFunction.test.js
2020-12-14 00:33:55 +05:30

12 lines
351 B
JavaScript

import { EulersTotientFunction } from '../EulersTotientFunction';
describe('eulersTotientFunction', () => {
it('is a function', () => {
expect(typeof EulersTotientFunction).toEqual('function')
})
it('should return the phi of a given number', () => {
const phiOfNumber = EulersTotientFunction(10)
expect(phiOfNumber).toBe(4)
})
})