2019-01-27 18:05:20 +00:00
|
|
|
import Test from "helper/Test";
|
|
|
|
import Zero from "Tone/signal/Zero";
|
|
|
|
import BasicTest from "helper/Basic";
|
|
|
|
import Signal from "Tone/signal/Signal";
|
|
|
|
import ConstantOutput from "helper/ConstantOutput";
|
2016-02-27 16:22:49 +00:00
|
|
|
|
2019-01-27 18:05:20 +00:00
|
|
|
describe("Zero", function(){
|
2016-02-27 16:22:49 +00:00
|
|
|
|
2019-01-27 18:05:20 +00:00
|
|
|
BasicTest(Zero);
|
2016-02-27 16:22:49 +00:00
|
|
|
|
2019-01-27 18:05:20 +00:00
|
|
|
context("Zero", function(){
|
2016-02-27 16:22:49 +00:00
|
|
|
|
2019-01-27 18:05:20 +00:00
|
|
|
it("handles output connections", function(){
|
|
|
|
var abs = new Zero();
|
|
|
|
abs.connect(Test);
|
|
|
|
abs.dispose();
|
|
|
|
});
|
2016-02-27 16:22:49 +00:00
|
|
|
|
2019-01-27 18:05:20 +00:00
|
|
|
it("always outputs 0", function(){
|
|
|
|
return ConstantOutput(function(){
|
|
|
|
new Zero().toMaster();
|
|
|
|
}, 0, 0);
|
2016-02-27 16:22:49 +00:00
|
|
|
});
|
2019-01-27 18:05:20 +00:00
|
|
|
|
2016-02-27 16:22:49 +00:00
|
|
|
});
|
2019-01-27 18:05:20 +00:00
|
|
|
|
|
|
|
});
|
|
|
|
|