testing signals

This commit is contained in:
Yotam Mann 2015-02-06 17:48:25 -05:00
parent 50917ac49f
commit 4bc44ac466
2 changed files with 4 additions and 4 deletions

View file

@ -280,7 +280,7 @@ function(core, chai, Signal, EqualZero, Equal, GreaterThan, LessThan, Test, Grea
gt = new GreaterThan(200);
signal.connect(gt);
gt.connect(dest);
gt.setValue(50);
gt.value = 50;
}, function(sample){
expect(sample).to.equal(1);
}, function(){
@ -374,7 +374,7 @@ function(core, chai, Signal, EqualZero, Equal, GreaterThan, LessThan, Test, Grea
lt = new LessThan(200);
signal.connect(lt);
lt.connect(dest);
lt.setValue(50);
lt.value = 50;
}, function(sample){
expect(sample).to.equal(0);
}, function(){

View file

@ -434,7 +434,7 @@ function(core, chai, Signal, Add, Multiply, Scale, Oscillator, Master, Abs, Nega
signal = new Signal(10);
max = new Max(-1);
signal.connect(max);
max.setMax(12);
max.value = 12;
max.connect(dest);
}, function(sample){
expect(sample).to.equal(12);
@ -523,7 +523,7 @@ function(core, chai, Signal, Add, Multiply, Scale, Oscillator, Master, Abs, Nega
signal = new Signal(3);
min = new Min(-4);
signal.connect(min);
min.setMin(4);
min.value = 4;
min.connect(dest);
}, function(sample){
expect(sample).to.equal(3);