Ver código fonte

Clock test allows slight variance for amount of real time passage.

master
Bryan Miller 5 anos atrás
pai
commit
d137381005
1 arquivos alterados com 4 adições e 2 exclusões
  1. +4
    -2
      test/unit.src.common.clock.spec.js

+ 4
- 2
test/unit.src.common.clock.spec.js Ver arquivo

@@ -30,7 +30,8 @@ describe("Clock Tests", function(){
let dt = speedTest(ts);
expect(count).to.be.gt(ts - d);
expect(count).to.be.lt(ts + d);
expect(dt).to.be.lt(1000);
expect(dt).to.be.gt(990);
expect(dt).to.be.lt(1010);
});

it("4Mhz for approx. 1 second", function(){
@@ -39,6 +40,7 @@ describe("Clock Tests", function(){
let dt = speedTest(ts);
expect(count).to.be.gt(ts - d);
expect(count).to.be.lt(ts + d);
expect(dt).to.be.lt(1000);
expect(dt).to.be.gt(990);
expect(dt).to.be.lt(1010);
});
});

Carregando…
Cancelar
Salvar