Skip to content

Commit

Permalink
[REFACTOR] test code de-duplication.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gonzalo Diaz committed Jul 2, 2024
1 parent 3b0c064 commit ae10d42
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/projecteuler/helpers/divisors.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,20 +110,6 @@ describe('divisors of a number', () => {
expect(isPrime(3000)).toBe(false);
});

it('abundance of a integer number compared to enum', () => {
expect.assertions(3);

expect(abundance(10)).toStrictEqual(
___DIVISORS_ABUNDANCE___.DIVISORS_DEFICIENT
);
expect(abundance(12)).toStrictEqual(
___DIVISORS_ABUNDANCE___.DIVISORS_ABUNDANT
);
expect(abundance(28)).toStrictEqual(
___DIVISORS_ABUNDANCE___.DIVISORS_PERFECT
);
});

it('abundance of a integer number compared to constants', () => {
expect.assertions(3);

Expand Down

0 comments on commit ae10d42

Please sign in to comment.