Debian Codegraph @

src/test/01-Basic/215-chugraph-passthrough.ck

raw
1 // verify passthrough Chugraph
2 class Node extends Chugraph
3 {
4 // connect inlet to output (passthrough)
5 inlet => outlet;
6 }
7
8 // patch in the Node
9 Step step => Node node => blackhole;
10 // set step
11 .5 => step.next;
12 // let time pass
13 1::samp => now;
14
15 // check if equal (or at least equal enough)
16 if( Math.equal(.5, node.last() ) )
17 <<< "success" >>>;