(count: number, action: () => void)
| 47 | disable(); |
| 48 | |
| 49 | function retry(count: number, action: () => void) { |
| 50 | for (var i = 1; i <= count; i++) { |
| 51 | try { |
| 52 | action(); |
| 53 | |
| 54 | return; |
| 55 | } catch (e) { |
| 56 | if (i === count) { |
| 57 | throw e; |
| 58 | } |
| 59 | } |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | export function test_time_returns_number() { |
| 64 | assertEqual(typeof time(), 'number'); |
no test coverage detected