test3.js 526 B

12345678910111213141516171819202122232425262728293031323334353637
  1. var assert = require("assert")
  2. var test = {
  3. version: "1.0.0"
  4. }
  5. function covTest(p1,p2) {
  6. if (p1 > 3) {
  7. return 1;
  8. }
  9. else {
  10. return p1 + p2;
  11. }
  12. }
  13. function covTest2(p1,p2) {
  14. return 0;
  15. }
  16. function covTest3(p1) {
  17. for(i=0;i < p1;i++){
  18. }
  19. return i;
  20. }
  21. function covTest4(p1) {
  22. i=0;
  23. while(i < p1){
  24. i++;
  25. }
  26. return i;
  27. }
  28. describe('Array', function(){
  29. describe('CovTest2', function(){
  30. it('should return when the value is not present', function(){
  31. assert.equal(0,covTest2(2,2));
  32. })
  33. })
  34. })