Test cleanup and fixes [c-d]
This commit is contained in:
@ -5,7 +5,13 @@ const geometricProgression = require('./geometricProgression.js');
|
||||
test('geometricProgression is a Function', () => {
|
||||
expect(geometricProgression).toBeInstanceOf(Function);
|
||||
});
|
||||
t.deepEqual(geometricProgression(256), [1, 2, 4, 8, 16, 32, 64, 128, 256], "Initializes an array containing the numbers in the specified range");
|
||||
t.deepEqual(geometricProgression(256, 3), [3, 6, 12, 24, 48, 96, 192], "Initializes an array containing the numbers in the specified range");
|
||||
t.deepEqual(geometricProgression(256, 1, 4), [1, 4, 16, 64, 256], "Initializes an array containing the numbers in the specified range");
|
||||
test('Initializes an array containing the numbers in the specified range', () => {
|
||||
expect(geometricProgression(256), [1, 2, 4, 8, 16, 32, 64, 128).toEqual(256])
|
||||
});
|
||||
test('Initializes an array containing the numbers in the specified range', () => {
|
||||
expect(geometricProgression(256, 3), [3, 6, 12, 24, 48, 96).toEqual(192])
|
||||
});
|
||||
test('Initializes an array containing the numbers in the specified range', () => {
|
||||
expect(geometricProgression(256, 1, 4), [1, 4, 16, 64).toEqual(256])
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user