mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 16:26:47 +08:00
chore: only test changed packages (#1194)
This commit is contained in:
@ -1,10 +1,10 @@
|
||||
import { problem44 } from '../Problem044.js'
|
||||
|
||||
describe('checking nth prime number', () => {
|
||||
it('should be invalid input if number is negative', () => {
|
||||
test('should be invalid input if number is negative', () => {
|
||||
expect(() => problem44(-3)).toThrowError('Invalid Input')
|
||||
})
|
||||
it('should be invalid input if number is 0', () => {
|
||||
test('should be invalid input if number is 0', () => {
|
||||
expect(() => problem44(0)).toThrowError('Invalid Input')
|
||||
})
|
||||
// Project Euler Condition Check
|
||||
@ -12,6 +12,7 @@ describe('checking nth prime number', () => {
|
||||
expect(problem44(1)).toBe(5482660)
|
||||
})
|
||||
// Project Euler Second Value for Condition Check
|
||||
// FIXME skip this test for now because it runs very long and clogs up the CI & pre-commit hook
|
||||
test('if the number is greater or equal to 2167', () => {
|
||||
expect(problem44(2167)).toBe(8476206790)
|
||||
})
|
||||
|
Reference in New Issue
Block a user