Commit 83517dc6 authored by mzed's avatar mzed
Browse files

updating test

parent ce0a2add
......@@ -411,17 +411,21 @@ describe('RapidLib Signal Processing', function () {
it('acceleration should be 10', function () {
expect(accelStream.acceleration()).to.equal(10);
});
let zeroStream = new rapidMix.StreamBuffer(6);
let zeroStream = new rapidMix.StreamBuffer(7);
zeroStream.push(-.5);
zeroStream.push(0.707);
zeroStream.push(0.68);
zeroStream.push(1);
zeroStream.push(0);
zeroStream.push(-1);
zeroStream.push(0);
zeroStream.push(1);
zeroStream.push(-1);
zeroStream.push(0.01);
it('zeroCrossings should be 3', function () {
expect(zeroStream.numZeroCrossings()).to.equal(3);
it('zeroCrossings should be 4', function () {
expect(zeroStream.numZeroCrossings()).to.equal(4);
});
describe('when streaming to statStream', function () {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment