Update the tests for the solutions

This commit is contained in:
RedViperPT
2025-02-11 22:55:05 +00:00
parent b025e48055
commit b92866af31
+1 -1
View File
@@ -2,7 +2,7 @@ const sumAll = require('./sumAll-solution');
describe('sumAll', () => {
test('sums numbers within the range', () => {
expect(sumAll(1, 4)).toEqual(10);
expect(sumAll(2, 4)).toEqual(9);
});
test('works with large numbers', () => {
expect(sumAll(1, 4000)).toEqual(8002000);