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

View file

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