mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-06-05 15:09:09 +09:00
Update the tests for the solutions
This commit is contained in:
@@ -2,7 +2,7 @@ const sumAll = require('./sumAll-solution');
|
|||||||
|
|
||||||
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('works with large numbers', () => {
|
test('works with large numbers', () => {
|
||||||
expect(sumAll(1, 4000)).toEqual(8002000);
|
expect(sumAll(1, 4000)).toEqual(8002000);
|
||||||
|
|||||||
Reference in New Issue
Block a user