From 7de34a7ca11f31ab7f29dbce958f130f5d594fa2 Mon Sep 17 00:00:00 2001 From: taniabarkovskya Date: Fri, 21 Feb 2025 18:13:13 +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..9cfda7d7 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(100, 4)).toEqual([25, 25, 25, 25]); }); test(`should return a part equals to a value when splitting into 1 part`, () => { - + expect(splitInteger(100, 1)).toEqual([100]); }); test('should sort parts ascending if they are not equal', () => { - + expect(splitInteger(10, 4)).toEqual([2, 2, 3, 3]); }); test('should add zeros if value < numberOfParts', () => { - + expect(splitInteger(4, 6)).toEqual([0, 0, 1, 1, 1, 1]); });