Final fixes, all tests running

This commit is contained in:
Angelos Chalaris
2018-06-18 20:41:57 +03:00
parent 977adb1198
commit e9594e6355
49 changed files with 2189 additions and 1198 deletions

View File

@ -17,13 +17,13 @@ test('head(String) returns S', () => {
expect(head('String')).toBe('S');
});
test('head(null) throws an Error', () => {
expect(head(null)).toThrow();
expect(() => { head(null); }).toThrow();
});
test('head(undefined) throws an Error', () => {
expect(head(undefined)).toThrow();
expect(() => { head(undefined); }).toThrow();
});
test('head() throws an Error', () => {
expect(head()).toThrow();
expect(() => { head(); }).toThrow();
});
let start = new Date().getTime();
head([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]);