Additional tests

This commit is contained in:
Angelos Chalaris
2018-10-31 21:04:22 +02:00
parent abd66ccc0a
commit b123d9fe53
5 changed files with 28 additions and 0 deletions

View File

@ -10,3 +10,6 @@ test('Returns the median of an array of numbers', () => {
test('Returns the median of an array of numbers', () => {
expect(median([1, 2, 3])).toBe(2);
});
test('Returns the median of an array of numbers', () => {
expect(median([1, 2, 3, 4])).toBe(2.5);
});