(a)
| 46 | |
| 47 | // Test do-while loop and continue. |
| 48 | function g(a) { |
| 49 | var x = 0, c = 0; |
| 50 | do { |
| 51 | x = x + 1; |
| 52 | if (x < 5) continue; |
| 53 | c = c + 1; |
| 54 | } while(x < a); |
| 55 | return c; |
| 56 | } |
| 57 | |
| 58 | assertEquals(6, g(10)); |
| 59 |
no outgoing calls
no test coverage detected