From ae10d42fa5c7171f226e969564e147f3c0df4079 Mon Sep 17 00:00:00 2001 From: Gonzalo Diaz Date: Mon, 1 Jul 2024 20:56:19 -0400 Subject: [PATCH] [REFACTOR] test code de-duplication. --- src/projecteuler/helpers/divisors.test.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/projecteuler/helpers/divisors.test.ts b/src/projecteuler/helpers/divisors.test.ts index 84132d34..d6a02c96 100644 --- a/src/projecteuler/helpers/divisors.test.ts +++ b/src/projecteuler/helpers/divisors.test.ts @@ -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);