Skip to content

Commit

Permalink
add test/tests/p5.Delay
Browse files Browse the repository at this point in the history
  • Loading branch information
therewasaguy committed Jan 28, 2017
1 parent 34d65dd commit 6dd821e
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions test/tests/p5.Delay.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
define(['chai'],
function(chai) {

var expect = chai.expect;

describe('p5.Delay', function() {

it('can be created and disposed', function() {
var delay = new p5.Delay();
delay.dispose();
});

it('has initial feedback value of 0.5', function(){
var delay = new p5.Delay();
expect(delay.feedback()).to.equal(0.5);
});

it('can set feedback', function(){
var delay = new p5.Delay();
delay.feedback(0.7);
expect(delay.feedback()).to.be.closeTo(0.7, 0.001);
});

});
});

0 comments on commit 6dd821e

Please sign in to comment.