mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-07-17 05:33:21 +09:00
Improve testing to ensure solution matches expected behaviour
This commit is contained in:
@@ -2,7 +2,7 @@ const sumAll = require('./sumAll')
|
|||||||
|
|
||||||
describe('sumAll', () => {
|
describe('sumAll', () => {
|
||||||
test('sums numbers within the range', () => {
|
test('sums numbers within the range', () => {
|
||||||
expect(sumAll(1, 4)).toEqual(10);
|
expect(sumAll(2, 4)).toEqual(9);
|
||||||
});
|
});
|
||||||
test.skip('works with large numbers', () => {
|
test.skip('works with large numbers', () => {
|
||||||
expect(sumAll(1, 4000)).toEqual(8002000);
|
expect(sumAll(1, 4000)).toEqual(8002000);
|
||||||
|
|||||||
Reference in New Issue
Block a user