From 1e625905ea329316ba461f4d5cfec8fc0aa7e753 Mon Sep 17 00:00:00 2001 From: fromjkeee16 Date: Wed, 4 Mar 2026 22:02:10 +0200 Subject: [PATCH] solution --- src/splitInteger.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/splitInteger.test.js b/src/splitInteger.test.js index a610317d..e2b76b79 100644 --- a/src/splitInteger.test.js +++ b/src/splitInteger.test.js @@ -4,18 +4,18 @@ const splitInteger = require('./splitInteger'); test(`should split a number into equal parts if a value is divisible by a numberOfParts`, () => { - + expect(splitInteger(6, 3)).toEqual([2, 2, 2]); }); test(`should return a part equals to a value when splitting into 1 part`, () => { - + expect(splitInteger(6, 1)).toEqual([6]); }); test('should sort parts ascending if they are not equal', () => { - + expect(splitInteger(24, 5)).toEqual([4, 5, 5, 5, 5]); }); test('should add zeros if value < numberOfParts', () => { - + expect(splitInteger(2, 6)).toEqual([0, 0, 0, 0, 1, 1]); });