Improve testing to ensure solution matches expected behaviour

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