summaryrefslogtreecommitdiff
path: root/Tests/JavascriptCoverage/test3.js
blob: a1e31bc18c5b3fea90a8cd730a2d1e118be49727 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
var assert = require("assert")
var test  = {
  version: "1.0.0"
}
function covTest(p1,p2) {
  if (p1 > 3) {
    return 1;
  }
  else {
    return p1 + p2;
  }
}

function covTest2(p1,p2) {
  return 0;
}

function covTest3(p1) {
  for(i=0;i < p1;i++){
  }
  return i;
}
function covTest4(p1) {
  i=0;
  while(i < p1){
  i++;
  }
  return i;
}

describe('Array', function(){
  describe('CovTest2', function(){
    it('should return when the value is not present', function(){
      assert.equal(0,covTest2(2,2));
    })
  })
})