-
-
Notifications
You must be signed in to change notification settings - Fork 682
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
34d65dd
commit 6dd821e
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
}); | ||
|
||
}); | ||
}); |