GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — tests: Project Euler Problem 3 (#1207) · Algorithms-Learn/JavaScript@b07529f

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Project-Euler/test
    • Problem003.test.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Project-Euler/test/Problem003.test.js‎

Copy file name to clipboard
+12Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { largestPrime } from '../Problem003.js'
2+
3+
describe('Largest prime factor', () => {
4+
test('if the number is 13195', () => {
5+
expect(largestPrime(13195)).toBe(29)
6+
})
7+
// Project Euler Condition Check
8+
test('if the number is 600851475143', () => {
9+
// Default value is same as the tested value
10+
expect(largestPrime()).toBe(6857)
11+
})
12+
})

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.