SIGN IN SIGN UP

Algorithms and Data Structures implemented in JavaScript for beginners, following best practices.

34083 0 0 JavaScript
2022-10-20 17:05:30 +05:30
import { largestPrime } from '../Problem003.js'
describe('Largest prime factor', () => {
test('if the number is 13195', () => {
expect(largestPrime(13195)).toBe(29)
})
// Project Euler Condition Check
test('if the number is 600851475143', () => {
// Default value is same as the tested value
expect(largestPrime()).toBe(6857)
})
})